Macros & Excel VBA

VBA to Loop through Rows of Table in Excel (11 Methods)

  Consider the following dataset, which we'll use to showcase looping through rows in a table. Method 1 - Embed VBA to Loop ...

How to Use VBA for Each Row in a Range in Excel

In this article, we will demonstrate how to use Excel VBA to iterate through each row in a range effectively, where the rows contain either single or ...

Extract Data from One Sheet to Another Using VBA in Excel (3 Methods)

  Watch Video – Extract Data from One Sheet to Another Using VBA in Excel Here’s an overview of the sample dataset we will be ...

Excel VBA: Copy Dynamic Range to Another Workbook

Different scenarios may arise while using Excel. You may need to copy a range from one workbook to another. We hope, after finishing the article you ...

How to Select Range from Active Cell Using VBA in Excel: 3 Effective Methods

Method 1 - Employing VBA to Select Range from Active Cell to the Last Non-Blank Cell Steps: From the Developer tab >>> select Visual ...

Excel VBA: Change Font Color for Part of Text: 3 Methods

Method 1 - Change the Font Color for a Specific Part of Text Using VBA in Excel 1.1 Use of the Font.Color Property Along with the above property, ...

How to Copy a Row Using Excel VBA If the Cell Value Matches (2 Methods)

Dataset Overview We’ll use the sample dataset below to demonstrate two methods. Method 1 - Copy Row to Another Sheet If One Cell Value ...

Excel VBA to Rotate Text to 90 Degrees (4 Easy Examples)

We will show 4 VBA code examples to rotate text to 90 degrees. We will use the following dataset for the examples. Example 1 - Excel VBA ...

Excel Macro: Sort Multiple Columns with Dynamic Range (4 Methods)

While working with large Microsoft Excel, sometimes we need to sort multiple columns with a dynamic range. We can easily do that by using the VBA ...

VBA to Loop through Rows and Columns in a Range in Excel (5 Examples)

We will use a dataset that contains information about the Sales Amount of the first two months of some sellers. Example 1 - Apply VBA ...

How to Compare Two Tables for Differences with Excel VBA (3 Methods)

In this article, I’ll show you how you can compare two tables for differences using VBA in Excel. You’ll learn to compare two tables by finding out ...

Excel VBA to Loop through Range until Empty Cell (4 Examples)

In our sample dataset, some cells in the Salesman column are empty. We'll use VBA loops to locate these empty cells. Example 1 - Excel VBA ...

How to Autofit Row Height with Wrap Text Using Excel VBA (5 Methods)

Scenario In this tutorial, we’ll address the issue of the names of the salesperson not fitting in cells in an Excel dataset. By using VBA (Visual ...

Using a Macro to Split a Cell into Multiple Rows in Excel – 8 Steps

This is an overview: Step 1 - Open the VBA Editor in Excel Select the cell containing the data you want to split, here B2 . Press ...

Excel VBA: Insert Data into Table: 4 Examples

The sample sale list of a shop contains details like the order date, product name, quantity, unit price, and total price. How to Create a Table ...

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo