Macros & Excel VBA

How to Select the Print Area Using VBA in Excel – 3 Methods

This is the sample dataset. Enter the Code in Visual Basic Editor Go to the Developer tab. Click Visual Basic. In the Visual ...

Excel VBA to Format Textbox Number with UserForm (With Easy Steps)

  Step 1 - Create UserForm in Excel VBA to Format Number Go to the Developer tab from the ribbon. Click on Visual Basic under the Code ...

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

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

Using VBA to Get Unique Values from a Column into an Array in Excel – 3 Examples

This is the sample dataset.   Example 1 - Using VBA to Extract Unique Values into a Separate Column as an Array Steps: Press ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo