Macros & Excel VBA

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

Excel VBA to Match String in Column (5 Examples)

In Excel, we use both numeric data and string data. They may exist in the same column or the same cell. If we want to find cells with string data, we ...

Excel VBA to Create Named Range from Selection (5 Examples)

A named range is to set a name for one or more cells. We can call a named range instead of a cell or range. In this article, we will discuss how to ...

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 Get Hyperlink from an Excel Cell with VBA (3 Methods)

In this article, I’ll show you how you can get the hyperlink from an Excel cell with VBA. You’ll learn to get the hyperlink from a single cell, as ...

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

How to Format TextBox for Phone Number in Excel VBA

This article illustrates how to use Excel VBA to format textbox for phone number. The following image highlights the purpose of this article. Have a ...

How to Convert Text to Date with Excel VBA – 5 Methods

The sample dataset contains text values. Method 1 -Using the CDATE Function to Convert Text to Date with Excel VBA 1.1 Convert a Text ...

Excel VBA: Format Percentage to 2 Decimal Places

In this article, I’ll show you how you can format a percentage to 2 decimal places using VBA in Excel. You’ll learn to format a percentage using VBA ...

How to Format Numbers in Decimal Places Using Excel VBA (6 Methods)

Dataset Overview We’ll work with a dataset containing columns for Rank, Chocolate Name, and Price ($). Method 1 - Formatting Integers Up ...

Excel VBA: Number Format with No Decimal Places (6 Methods)

While working with large Microsoft Excel, sometimes we need to use the integer number only which means we need to use a number format with no decimal ...

How to Populate a Mail Merge Document from Excel with a VBA Macro

Scenario In the following image we have an email format in the Home sheet of our Excel workbook. There is another sheet named Info in our ...

How to Set Value to a Named Range with Excel VBA (3 Methods)

In this article, I’ll show you how you can set value (s) to a named range with VBA in Excel. You’ll learn to set a single value to a named range, as ...

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo