Macros & Excel VBA

How to Print Multiple Excel Sheets in a Single PDF File with VBA (6 Methods)

We have an Excel workbook consisting of three worksheets. The first worksheet is Sheet 1, and the data is shown in the picture below. The ...

Excel VBA: Cut and Insert Column (5 Examples)

We’ll use the Range.Cut method to cut single or multiple columns and then the Range.Insert method to insert into the worksheet. We’re going to use ...

Excel Button to Print Specific Sheets: 7 Easy Methods

There are three different sheets in our reference Excel file. We will print specific sheets from that file using the Excel button.   ...

Excel VBA: Remove AutoFilter If It Exists: 7 Methods

Method 1 - Remove AutoFilter from Active Worksheet If It Exists ❶ Press ALT + F11 to open the VBA Editor. ❷Go to Insert >> Module. ❸ ...

Excel VBA to Highlight Cell Based on Value (5 Examples)

  VBA Code to Highlight Cell Based on Value (A Quick View) Sub multiple_conditional_formatting() Dim range_1 As Range Dim cond_1, cond_2, ...

How to Open a Hyperlink in the Google Chrome Browser using VBA Code in Excel (3 Methods)

Overview of the Shell Function The Shell function is used to run an executable program using its file location from inside a VBA code. This function ...

Excel VBA: Add Hyperlink to Cell in Another Sheet (2 Examples)

In this article, we'll demonstrate how to add a hyperlink to a cell in another sheet using VBA in Excel. Excel VBA: Add Hyperlink to Cell in ...

Excel VBA to Find Duplicate Values in Range: 7 Examples

Method 1 - Use VBA For Loop to Identify Duplicate Values in a Range Step 1: Go to the Sheet Name section at the bottom border of each cell. ...

How to Find Duplicates in a Column Using Excel VBA (5 Ways)

Method 1 - Find Duplicates for Range of Cells in a Column ❶ Press ALT + F11 to open the VBA editor. ❷ Go to Insert >> Module. ❸ Copy ...

How to Extract Certain Text from a Cell in Excel VBA: 5 Codes

Method 1 - Use the VBA Left Function to Extract Text from the Left Side of the Cell and Display it in a Message Box Step 1: Go to the Sheet ...

Excel VBA: Combining If with And for Multiple Conditions

In this tutorial, we will demonstrate how to combine If with And for multiple conditions with VBA. We use the If and Else statement to evaluate ...

Excel VBA to Filter in Same Column by Multiple Criteria: 6 Methods

Method 1 - Remove Specific Values with VBA to Filter in the Same Column by Multiple Criteria in Excel STEPS: Right-click on the worksheet tab ...

VBA to AutoFilter with Multiple Criteria on Same Field in Excel: 4 Methods

Method 1 - Embed VBA to AutoFilter with Multiple Numeric Criteria on the Same Column Steps: Press Alt + F11 on your keyboard or go to the tab ...

Excel VBA To Round to 2 Decimal Places: 5 Methods

Method 1 - Using VBA to Round a Number to 2 Decimal Places for a Specific Sheet STEPS: Go to the Developer tab >> select Visual Basic. ...

How to Use Range with Variable Row and Column with Excel VBA

We will demonstrate 5 ways to create variable rows and columns. We'll use the following sample dataset with product prices, quantities, and sales. ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo