Latest Blog Posts

How to Count Occurrences in a String Using Excel VBA (4 Methods)

Working with strings is a fundamental aspect of programming, and being able to count occurrences of specific characters or substrings within a ...

VBA Animation in UserForm (4 Suitable Examples)

Example 1 - Creating an Animated Clock in UserForm We'll create an Animated Clock that will look like this. Steps: Go to the Developer ...

Using VBA to Get the Array Dimensions in Excel – 4 Examples

Example 1 - Get the Array Dimensions with the Number of Elements in Excel Press F5 or click Run to run the VBA macro. Sub Array_Elements() ...

How to Deselect in Excel VBA (7 Methods)

  How to Launch VBA Editor in Excel To access the Microsoft Visual Basic window, go to the Developer tab and click on Visual Basic. You can ...

Using Excel VBA to Set Vertical Alignment – 5 Examples

This is an overview. Syntax: expression.VerticalAlignment Expression is a variable that represents a cell-format object. These are ...

Excel VBA to Wrap Text (3 Practical Examples)

Excel VBA provides various methods to wrap text in cells, ranges, and entire worksheets. Knowing these methods can help you customize the appearance ...

Excel VBA for Shape Position (4 Examples)

Here's an overview of shape information that you can get with Excel VBA. How to Launch the VBA Editor in Excel Press Alt + F11 to ...

[Fixed!] Invalid Forward Reference in VBA

There are several possible causes of an Invalid forward reference error in VBA in Excel, so it can often be tricky to identify the appropriate method ...

Excel VBA Error Handling in Loop (5 Best Practices)

Here's an overview of how VBA handles errors while performing loops. How to Launch the VBA Editor in Excel Click on the Developer tab ...

How to Use VBA in Excel to Capitalize All Letters (4 Examples)

How to Open the VBA Macro Editor in Excel You will need the Developer tab at the top of the worksheet. Click on the Developer tab and select ...

How to Adjust Column Width Using Excel VBA (6 Methods)

Launching the VBA Macro Editor in Excel Before running any VBA code, you’ll need to access the VBA Macro Editor. Follow these steps: Enable the ...

[Fixed!] Runtime Error 438 in Excel VBA (5 Solutions)

Reason 1 - Incorrect Workbook Reference The following code has an incorrect workbook reference. Running this code will give runtime error 438. To ...

Excel VBA to Find Multiple Values in Range (4 Examples)

Method 1 - Finding Multiple Values from User Input The following code will prompt users to insert a value that they want to find and highlight ...

How to Use a Target Row in Excel VBA (4 Ways)

The video below illustrates how to use Target Row to delete an entire row. By selecting Target Row, we have deleted all rows with marks less than 70 ...

How to Use Excel VBA to Move Files

A File System Object (FSO) is an object in VBA that provides a way to work with files and folders on a computer’s file system. It allows VBA code to ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo