Macros & Excel VBA

Excel VBA: Print Range of Cells – 5 Easy Methods

This is the sample dataset. Method 1 - Using the Excel VBA PrintOut Method to Print a Range of Cells Steps: Open Visual Basic in the ...

How to Use the VBA Code to Create a Custom Print Button in Excel (5 Methods)

Method 1 - Print Dialog Box  Create a button by going to Developer, select Insert and click on the Button Box. Drag the cursor to set ...

Excel VBA: Print UserForm to Fit on a Page (2 Methods)

In this article, I’ll show you how you can use Excel VBA to print a UserForm to fit on a page. Excel VBA: Print UserForm to Fit on a Page (2 ...

Excel VBA to Check If AutoFilter is On (4 Easy Ways)

Sometimes due to technical issues AutoFilter gets hidden, or even though there is no filter applied, Excel shows that there is. In both cases, it can ...

Using a VBA Code to Filter Data in Excel – 8 Examples

The following dataset contains students’ Gender, Status, and Age. Example 1 - Using a VBA Code to Filter Data Based on Text Criteria in ...

How to Filter a Dataset Based on a Cell Value from Another Sheet Using VBA (4 Methods)

Dataset Overview Let’s introduce our dataset first. We have a list of sale details for 4 different products from 2 categories. We want to filter ...

Filter Different Columns by Multiple Criteria in Excel VBA – 3 Methods

This is the sample dataset. Method 1 - Filtering Different Columns by Multiple Criteria Using the VBA With Statement To Filter TVs costing ...

How to Format Cell and Center Text with Excel VBA (5 Ways)

Method 1 - Run a VBA Code to Center Text Horizontally and Format Cell with Excel VBA 1.1 Center an Active Cell Horizontally In the image below; ...

Import Data from Excel into Word Automatically Using VBA (2 Ways)

Once you've read these methods, you will learn how to import data from an Excel file into a Word file automatically after running VBA code and by ...

Excel VBA to Select Used Range in Column (8 Examples)

In the following image, we can see the dataset that we will use for all the examples. The dataset contains the names of Salespeople, their Location, ...

Excel VBA: R1C1 Formula with Variable (3 Examples)

While working in Excel, you might hear the absolute and relative cell references. We can use both types of reference in the R1C1 formula with ...

Excel VBA: How to Set Print Area Dynamically (7 Ways)

Method 1 - Setting Print Area Using a Dynamic Named Range Step 1: ➤ Go to the Formulas Tab >> Defined Names Group >> Name Manager ...

How to Autofilter Values Not Equal to a Certain Value with VBA in Excel

In this article, I’ll show you how you can auto-filter values that are not equal to a certain value with VBA in Excel. You’ll learn to auto-filter ...

Excel VBA: Format Currency with Two Decimal Places – 3 Methods

Entering the Code in the Visual Basic Editor Go to the Developer tab. Click Visual Basic. Click Insert and select Module. ...

How to Filter Based on Cell Value Using Excel VBA (4 Methods)

Let’s introduce today’s dataset (B4:E15 cell range) as shown in the following screenshot. Here, the Number of Visits for each website is provided ...

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo