Macros & Excel VBA

How to Fix Excel Runtime Error 13 Type Mismatch in VBA

The Runtime Error 13 Type Mismatch in VBA is one of the most common types of errors while using VBA and occurs if the data type that is given does ...

Using Excel VBA to Count Files in Folders and Subfolders – 4 Examples

How to Launch the VBA Editor in Excel Utilizing the Module Tool: Open your workbook and click Visual Basic in the Developer tab. ...

How to Fix If VBA ‘Object Variable’ or the ‘With Block Variable’ Not Set in Excel (2 Solutions)

How to Launch VBA Editor in Excel Steps: Press Alt + F11 to open your Microsoft Visual Basic. Press Insert > Module to open ...

Excel VBA to List Files in the Folder and Subfolders  – 3 Examples

This is an overview. Key Concepts i. Dir Function The Dir function returns the first file name in the specified folder. ii. File ...

Excel VBA to List Files in Folder with Specific Extension 

In this article, we will show 5 simple ways to use Excel VBA to list the files in a folder with a specific extension. In addition, we will show the ...

How to Solve Overflow Error in VBA (4 Easy Methods)

The Overflow Error is one you are likely to encounter when coding with VBA, like in the video above. This article will demonstrate how to solve ...

How to Interact with a Target Cell Using Excel VBA (9 Examples)

Understanding the Target Cell Property When you want to interact with a cell in a worksheet using an event, you can utilize the Target property of ...

How to Use the Excel VBA Target Range – 4 Examples

What Is the Target Range in Excel VBA? The Target in Excel VBA refers to the object that was last selected or clicked by the user. How to Launch ...

Excel VBA ComboBox with Control Source Property: 2 Methods

Method 1 - Using ComboBox Property Step 1: Creating VBA UserForm With ComboBox in Excel Create a UserForm with ComboBox. To create a Userform ...

How to Sort by Column Header Name Using VBA in Excel (5 Ways)

The video overviews this article, representing sorting by column header name in Excel VBA. Here, by double-clicking the “Company” and “Revenue ...

Guide To Excel VBA to Open Workbook from Path in Cell

How to Launch VBA Macro Editor in Excel Steps: Open the Developer tab. Select the Visual Basic command. The Visual Basic window ...

Excel VBA to Loop Through Named Range (6 Suitable Examples)

Looping through a named range is just like looping through a regular range.  The advantage is you can run a loop without having to explicitly ...

Activate Another Workbook with VBA in Excel: 6 Examples

Method 1 - Activate Another Workbook by Workbook Name in Excel VBA This example will help you activate another workbook by closing your existing ...

Excel VBA to Custom Sort: 5 Easy Methods

Method 1 -  Creating Custom List to Sort Dataset Based on Single Column in Excel We created a list within G5:G8 cells. The list has three names, ...

Excel VBA to Find Matching Value in Column: 8 Examples

Method 1 - Using Match Function to Find One Matching Value in Column Find the Match value of the Model according to order ID. Prepare some ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo