Macros & Excel VBA

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

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

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

Excel VBA: Format Number with Comma (2 Examples)

How to Write Code in the Visual Basic Editor Go to the Developer tab from the Excel Ribbon. Click the Visual Basic option. In the ...

How to Hide Formula in Excel Using VBA: 4 Methods

Method 1 - Embed VBA to Hide the Formula of a Range in Excel Steps to Protect a Sheet: Go to the tab Review. Click Protect Sheet from the ...

VBA INDEX MATCH Based on Multiple Criteria in Excel (3 Methods)

This is the sample dataset for illustration. We will extract a certain result residing in one column based on conditions from the other two columns. ...

How to Insert Picture from URL Using VBA in Excel (2 Methods)

We will use the sample dataset below to insert images into the blank column (Image column) from the URLs given in the URL column. Method 1 - ...

How to Insert an Image into a Cell with Excel VBA (2 Methods)

Quick View Sub Insert_Single_Image() Image_Name = "Argentina" Image_Location = "E:\ExcelDemy\National Flags" Image_Format = ".png" ...

Using VBA to Select a Value from a Drop Down List in Excel – 2 Methods

Creating a Dropdown List from a Generic List in Excel In the dataset below, there are repeated values (Apple in B7 and B9) . Create a ...

Excel VBA: Inserting a Picture from the Folder – 3 Methods

You have pictures in a specific folder and want to insert one of these pictures in your Excel worksheet.   Go to the Developer tab. ...

Excel VBA: Create a UserForm Image from a Worksheet – 3 Examples

  Example 1 - Using the Copy Pasting Tool You have an image in your worksheet. To add this image to the UserForm dialog box:   ...

How to Keep Unique Values in a Drop Down List with Excel VBA – 3 Methods

Quick View: Sub Drop_Down_List_Unique_Values_At_Least_Once() List_Location = "B3" Data = Range(List_Location).Validation.Formula1 Data = ...

Excel VBA: Dynamic Range Based on Cell Value (3 Methods)

How to Write Code in the Visual Basic Editor Go to the Developer tab from the Excel Ribbon. Click the Visual Basic option. In the ...

How to Count Columns with Data Using Excel VBA (2 Methods)

Method 1 - Count All the Columns with Data in a Worksheet Open the VBA editor by pressing ALT + F11. Create a new module from Insert > ...

How to Find and Replace Multiple Values in Excel with VBA (3 Examples)

Below is a dataset that contains information about the departments of employees. We will try to use VBA to find and replace the department's values. ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo