Macros & Excel VBA

How to Use the Excel VBA MsgBox Title – 5 Examples

This is an overview: Excel VBA MsgBox Syntax of the VBA MsgBox Function in Excel MsgBox( prompt ) prompt – shows the ...

Excel VBA Custom Input Box: 7 Examples

Example 1 - Customizing an Input Box with a Custom Prompt Message Steps: After opening a new module, insert the following code and run it by ...

Using Excel VBA to Show Multiple Values with Multiple Variables in a MsgBox – 5 Examples

This is an overview: 3 variables in different data types were shown in a MsgBox. The VBA MsgBox Function Objective: The MsgBox ...

How to Use the Excel VBA VLookup Function with a Named Range – 5 Examples

The VBA VLookup Function and the Named Range Summary of the VBA VLookup Function The VBA VLookup function finds a specified value from the first ...

Excel VBA: How to Exit a For Loop: 5 Methods

  Method 1 - Exit a Loop Early   Steps: Insert a module as stated earlier. Write the following code inside the module. ...

Excel VBA to Use For Loop with Two Variables

  A Quick Overview of For Loops (For Next and For Each) A For Loop or For Next is a type of control structure that enables you to repeat a ...

Excel VBA to Vlookup Values for Multiple Matches: 2 Methods

Method 1 - Excel VBA Code to Vlookup Values for Multiple Matches 1.1. Return Multiple Values for Matches in One cell with Separators in Between with ...

How to Create Histogram in Excel Using VBA (With Easy Steps)

In this article we will demonstrate a step-by-step procedure to create a histogram using VBA code in Excel. What Is a Histogram? A ...

How to perform Linear Interpolation Excel VBA – 4 Steps

This is a final output: What Is Linear Interpolation in Excel? Interpolation is a method of finding a value from known values. In linear ...

Excel VBA to Break Links – 4 Examples

The following GIF provides an overview. The dataset below contains a sales overview. B5:C11 is linked to a different workbook:  Sales ...

How to Use VBA Intersect Method in Excel (4 Practical Examples)

An intersection occurs when two or more lines or areas cross one another. The resulting shared point or area is known as the intersection point or ...

How to Insert Pictures to Automatically Fit the Cell Size with VBA in Excel – 3 Steps

The sample dataset contains Company names and a column to insert their Logo.   Step 1 - Insert a Module Go to the Developer ...

How to Create Calendar Using VBA in Excel (with Easy Steps)

Here's the overview of the calendar we're going to create. Step 1 - Preparing an Outline of the Calendar with a UserForm and VBA in Excel ...

How to Clear Pivot Table Cache Using VBA in Excel

If we delete some data from the source table of a Pivot Table, in the Pivot Table that data will still be available because the deleted cells are ...

How to Check If a Number Is Odd or Even with Excel VBA

In this article, we will demonstrate a step-by-step procedure to check if a number is odd or even with VBA in Excel. We used Office 365, but you may ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo