Macros & Excel VBA

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 ...

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 ...

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 ...

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 ...

How to Sort Multiple Columns of a Table with Excel VBA (2 Methods)

In this article, we will describe how to sort multiple columns of a table using VBA in Excel, based on both a single column and multiple columns. ...

How to Use VBA Code to Change Font Color in Excel (3 Methods)

Dataset Overview Suppose we have a dataset containing information about several sales representatives from the Armani group. The dataset includes ...

How to Search the Sheet Name with VBA in Excel – 3 Examples

This is the sample dataset. Example 1 - Using Excel VBA to Search the Sheet Name and Display the Search Result   STEPS: ...

How to Select a Sheet Using a Variable Name with VBA in Excel (2 Methods)

Dataset Overview Let’s use a sample dataset as an example. The dataset represents the Salesman, Product, and Net Sales of a company, spread across ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo