Macros & Excel VBA

Excel VBA: Select Visible Cells After Autofilter (4 Examples)

The following dataset has 4 columns displaying people's Names, where they are From, their Age, and Income. Method 1 – Selecting Visible ...

Excel VBA to Select First Visible Cell in Filtered Range

Method 1 - Use Sheet Name to Select First Visible Cell in Filtered Range with Excel VBA STEPS: Go to the Developer tab and select Visual Basic. ...

Create a Search Box in Excel with VBA (5 Suitable Examples)

We have taken the following table as the dataset. This table contains State, Sales Person, and Product columns. We will create a search box in Excel ...

How to Refresh Excel Sheet Automatically Using VBA (4 Methods)

  Method 1 - Using the ThisWorkbook Method in VBA to Refresh an Excel Sheet Automatically Step 1 - Creating the Dataset We will create a ...

How to Add Sheet After Current One with Excel VBA (3 Variants)

Basics of VBA Sheets.Add Method Sheets.Add is a method that is used to add a new worksheet to the current worksheet. This method is used while ...

How to Find Row Number Using VBA in Excel (4 Macros)

Macro 1 - VBA to Find Row Number by Changing Selection Steps: Right-click on the sheet title and select View Code from the context menu. ...

How to Compare Dates to Today with Excel VBA – 3 Methods

The following sales dataset contains the amounts of sales and the date. To compare the dates to the current date: Press ALT+F11 to ...

Excel VBA: Copy Range to Clipboard (7 Suitable Examples)

How to Enable the Clipboard Shortcut in Excel Steps Go to the Home tab on the ribbon. Select the dialog launcher arrow from the ...

Excel VBA: Clear Contents If Cell Contains Specific Values

In this article we will demonstrate how to use VBA code to clear the contents of a cell if it contains various content, such as a numeric value, ...

How to Find a String in a Column and Return a Row Number Using VBA (6 Methods)

Method 1 - Returning Row Number Based on a String Open the VBA Window: Go to the Developer tab on the Excel ribbon. Select Visual ...

How to Get Row Number from Range with Excel VBA (9 Methods)

Method 1 - Get Row Number from Range Steps Open the VBA window by going to the Developer tab and selecting Visual Basic. Insert a new ...

Excel VBA Copy Cell Value to Clipboard: 4 Methods

Method 1 - Copying a Specific Worksheet’s Cell Value to Clipboard in Excel VBA Step 1: Type the following macro in the inserted Module. Sub ...

Open Workbook with Variable Name Using VBA in Excel: 4 Easy Ways

Method 1 - Using Workbook.Open Property 1.1 Open Workbook Mentioning File Path Steps We have a file stored in the documents folder to open. ...

How to Clear Cells in Excel VBA (9 Easy Methods)

The following dataset has the Product and Sales columns. We will clear some cells with VBA. Method 1 - Using the VBA Clear Command in ...

How to Create a Table with Headers Using Excel VBA (2 Methods)

  We made a survey and want to store some respondent information. We need the column headers like in the following picture. Method ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo