1.

Excel VBA Nested If Then Else in a For Next Loop (3 Examples)

In this article, we will explore three simple examples that demonstrate the practical application of nested If Then Else statements within a For Next loop. Although there are countless use cases for…

2.

Excel VBA to Get Pivot Table Field Names (3 Easy Methods)

We have two pivot tables in separate sheets named Sheet1 and Sheet2. The picture below is the first pivot table containing the Sum of Revenue of a Sales dataset. The second pivot…

3.

VBA Instr Case Insensitive (2 Suitable Examples)

In this article, I am going to show you how to make the VBA Instr function case insensitive in Excel. First, we will look at the syntax and applications of the VBA…

4.

Activeworkbook Refreshall Not Working [Solved!]

Excel VBA Refresh All Open Workbooks The ActiveWorkbook.RefreshAll method is used to refresh all the existing data connections and pivot tables in a workbook. The syntax of the method is given below.…

5.

Excel VBA to Sum Range of Cells in Column

In this article, we will learn how we can use Excel VBA Sum Range of Cells in Column. Summing up a range of cells in a column is a very common task…

6.

How to Create a Database in Excel with Pictures (5 Easy Steps)

Step 1 - Create a Header Row in a Worksheet Open a new Excel workbook. Create a new worksheet (you can name it Employee Database or something similar). In the first row (Row…

7.

Text to Columns in Excel VBA (4 Easy Examples)

In this article, we will discuss the Excel VBA Text to Columns method (TextToColumns). The TextToColumns method works the same way as the Text to Column feature in an Excel worksheet, but…

8.

How to Convert a Block of Code into a Comment Using Excel VBA (4 Methods)

  Why Use Comments in a Code? Comments serve several purposes in code: Explanation: They explain what the code is doing and provide insight to the reader. Context: Comments help other programmers…

9.

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 tab and open the Microsoft Visual Basic for…

10.

[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 to fix the error. Here are 4…

11.

How to Use Macro to Create Folders from Excel List (3 Methods)

In this article, we will use a VBA Macro to create folders from an Excel list. Multiple folders and subfolders with various names may occasionally be necessary, but manually generating those directories…

12.

How to Use Excel VBA to List Files in a Folder – 4 Methods

This is an overview. How to Launch VBA Editor in Excel Go to the Developer tab on the ribbon or  enable the Developer tab on your ribbon.. Select Visual Basic. In the…

13.

How to Use the Excel SUMIF with Blank Cells (3 Methods)

Dataset Overview Let’s take a dataset where a charitable organization named Save the Poor has a list of donations. Here, in the Donor Name column, the blank cells represent those donors who want…

14.

How to Use Excel VBA InputBox with Example

In many situations, while working in Excel VBA, we need to ask the user to insert some parameters directly. We can do that using VBA InputBox. If you are wondering how to…

15.

How to Use Excel VBA Nested For Loop (3 Examples)

How to Launch the VBA Editor in Excel Ensure that the Developer tab is displayed on your ribbon. Go to the Developer tab. Select Visual Basic. A new window will open. Follow…

Advanced Excel Exercises with Solutions PDF