Macros & Excel VBA

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

Find and Replace a Text in a Range with Excel VBA (Macro and UserForm)

In this article, I’ll show you how you can use Excel VBA to find a specific text and replace it with another text within any range in a worksheet. ...

Excel VBA: Count Rows in a Sheet (5 Examples)

Counting the total number of rows in a sheet is quite easy for a smaller size of dataset. However, if the size of the data table becomes large, then ...

[Fixed]: Can’t Find Project or Library Error in Excel (3 Solutions)

While working with a large Microsoft Excel dataset, sometimes we see that our VBA macros show an error named “can’t find project or library”. It ...

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 Rows in Selection Using VBA in Excel

In general, a typical Excel workbook contains numerous rows. And these rows may have blank or non-blank entries. Excel VBA count rows in selection is ...

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