Macros & Excel VBA

How to Merge Multiple Sheets into One Sheet with VBA in Excel?

We have a workbook consisting of 3 worksheets, Sheet1, Sheet2, and Sheet3. Each contains the sales record of some products for 3 different weeks. ...

How to List Sheet Name in Excel (5 Methods + VBA)

In this article, we'll discuss various ways to derive a list of sheet names in Excel. Unfortunately, there is no dedicated function to fetch a list ...

Excel VBA to Count Rows with Data: 4 Methods

Method 1 - Count Rows with Data Using Excel VBA in a Whole Sheet Steps: Right-click on the sheet title. Select View Code from the context ...

How to Format a Cell in Excel with VBA (12 Ways)

Method 1 - Format Cell Horizontally or Vertically with VBA Excel’s CellFormat. The AddIndent property sets a Variable type value that indicates ...

VBA COUNTIF Function in Excel: 6 Examples

Method 1 - WorksheetFunction with COUNTIF in Excel VBA Steps: Press Alt + F11 on your keyboard or go to the tab Developer -> Visual Basic to ...

VBA Date to String Conversion in Excel (6 Methods)

Method 1 - Excel FORMAT Function to Convert a Date Range to Strings with VBA Case 1.1 - Change the Whole Date Format in Range Suppose we are using ...

How to Use the Substitute Function in Excel VBA: 3 Methods

Method 1 - Removing the First Character(s) from a String with the Substitute Function in Excel VBA Below is a dataset with the names and IDs of ...

How to Apply the VBA Now and Format Functions in Excel (4 Examples)

VBA Now Function Overview Function Objective The Now function returns the current date and time based on the user’s computer’s default settings. ...

How to Copy and Paste in Excel Using VBA (12 Methods)

Download Practice Workbook You can download the workbooks used to illustrate methods in this article from here. Excel VBA Copy Paste.xlsm ...

How to Use VBA to Remove Duplicates in Excel – 6 Examples

VBA Syntax to Remove Duplicates in Excel Generic Syntax Range.RemoveDuplicates(Columns, Header) Parameter Description ...

Cell Reference in Excel VBA (8 Examples)

We'll use a data set with the Book Name, Book Types, and Price of some books of a bookshop called Martin Bookstore. The data set lies in the range ...

How to Use VBA MONTH Function in Excel (7 Suitable Examples)

The MONTH function falls under the Date or Time category. The MONTH function works both in worksheet and VBA Macros. It takes only one argument. ...

How to Use the Advanced Filter in VBA (A Step-by-Step Guideline)

In this article, we'll demonstrate how to use Excel's Advanced Filter in VBA. Excel Advanced Filter Overview Advanced Filter is a tool ...

How to Use EoMonth in Excel VBA (5 Examples)

Download Practice Workbook Uses of EoMonth.xlsm Overview of EoMonth Function in VBA ⏺ Function Objective Returns the serial number for ...

How to Use VBA AutoFill in Excel (11 Examples)

Example 1 - Copy Information Down the Cells Using xlFillCopy Dataset: In Column B, cells B4 and B5 contain numbers 1 and 2. The cells are also ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo