Macros & Excel VBA

How to Apply Formula to Entire Column Using Excel VBA

We have a sample dataset of product prices and taxes to be applied to them. We have formatted all the data cells in the Accounting format. We saved ...

How to Find Lookup a Value in an Array Using VBA in Excel (2 Methods)

Dataset Overview To demonstrate the methods, we’ll use this Daily Sales-Fruit Section report of a certain grocery store. This dataset includes ...

Excel VBA to Clear Contents of Named Range (3 Macro Variants)

The article will show you how to clear the contents of a Named Range in Excel VBA. If your dataset contains Named Ranges and you need to change the ...

How to Declare Array in Excel VBA (3 Easy Ways)

If you want to run a VBA code in Excel, then you first have to declare an array. However, if you want to declare array in VBA, then you have landed ...

How to Highlight Blank Cells in Excel VBA (6 Suitable Examples)

Sometimes, we want to highlight the cells which contain no data or empty strings. We can do it by using VBA. Here, you will find 6 ways to highlight ...

How to Check If an Array Is Empty with VBA in Excel (3 Methods)

Below is a dataset on gangsters' secret names in the Serial No, Gangster, and Pseudonym columns. Set an Array with VBA in Excel Steps: ...

How to Select Visible Cells in Excel with VBA: 5 Easy Methods

Method 1 - Select Only Visible Cells Steps: ⧭ Open VBA Window: VBA has its own separate window to work with. You have to insert the code in ...

How to Find Square Root in Excel VBA (3 Suitable Methods)

It is quite fascinating how easily we can find square root in Excel using VBA codes. Simply by running an Excel VBA code, we can find square roots of ...

Excel VBA: Select Visible Cells After Autofilter (4 Examples)

The following dataset has 4 columns displaying people's Names, where they are From, their Age, and Income. Method 1 – Selecting Visible ...

Excel VBA to Select First Visible Cell in Filtered Range

Method 1 - Use Sheet Name to Select First Visible Cell in Filtered Range with Excel VBA STEPS: Go to the Developer tab and select Visual Basic. ...

Create a Search Box in Excel with VBA (5 Suitable Examples)

We have taken the following table as the dataset. This table contains State, Sales Person, and Product columns. We will create a search box in Excel ...

How to Refresh Excel Sheet Automatically Using VBA (4 Methods)

  Method 1 - Using the ThisWorkbook Method in VBA to Refresh an Excel Sheet Automatically Step 1 - Creating the Dataset We will create a ...

VBA Read Text File into Array (2 Suitable Methods)

While working in Excel, we often need to read and extract texts from a text file into array using VBA code. For a small text file, we can do this ...

How to Add Sheet After Current One with Excel VBA (3 Variants)

Basics of VBA Sheets.Add Method Sheets.Add is a method that is used to add a new worksheet to the current worksheet. This method is used while ...

How to Find Row Number Using VBA in Excel (4 Macros)

Macro 1 - VBA to Find Row Number by Changing Selection Steps: Right-click on the sheet title and select View Code from the context menu. ...

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo