Macros & Excel VBA

How to Create a Macro Button in Excel – 3 Methods

This is the sample dataset. Use this code to assign to macro buttons that will return the row numbers in the active sheet. ...

How to Set the Option Button Value in Excel VBA (4 Steps)

Step 1 - Prepare the Dataset In this initial step, we’ll create a dataset containing four columns: Student, Mark, Grade, and Position. The dataset ...

How to Spell Numbers in Taka in Excel (Easy Steps)

Every country has its own significant currency used for regional banking, business, and educational purposes. Microsoft Excel, as a powerful tool, ...

How to Make a Calculate Button in Excel (with Easy Steps)

You can use the F5 key or a Form Control Button to run a macro to calculate operations within worksheets. Step 1 - Generating a Macro for ...

How to Use a VBA Code for Submit Button in Excel (with Easy Steps)

We have a dataset that contains information about several Sales representatives of XYZ group. The Names of the sales representatives and their sales ...

How to Clear Contents of a Sheet with Excel VBA (5 Examples)

In this tutorial, we will discuss five different scenarios involving clearing the contents of worksheets in Excel using VBA code. In all cases, we ...

How to Use Spell Number in Excel (2 Methods)

  Method 1 - Using Spell Number with Currency in Excel VBA code is used to create the Spell Number function which will convert the numbers and ...

How to Spell a Number in Dirhams in Excel (2 Ways)

The following dataset contains a list of products and their sales values. We will try to enter the numbers in the Sales column as words with Dirhams ...

Spell Number Not Working in Excel: Complete Guide

Method 1 - Solving Spell Number for US Currency Steps: Go to the Developer Tab and then select Visual Basic. The VBA editor will ...

How to Highlight an Active Row in Excel VBA (2 Examples)

Method 1. Using VBA to Highlight an Active Row in a Single Worksheet Steps: Right-click on the sheet tab and select View Code. Alternatively, ...

How to Open a Workbook as Read-Only with Excel VBA (4 Methods)

Dataset Overview We are going to use the below dataset for demonstration purposes. We got the product information for different types of products ...

How to Apply Formula to Entire Column Using Excel VBA

We have a sample dataset of product prices and taxes to be applied to them. We have formatted all the data cells in the Accounting format. We saved ...

How to Find Lookup a Value in an Array Using VBA in Excel (2 Methods)

Dataset Overview To demonstrate the methods, we’ll use this Daily Sales-Fruit Section report of a certain grocery store. This dataset includes ...

How to Check If an Array Is Empty with VBA in Excel (3 Methods)

Below is a dataset on gangsters' secret names in the Serial No, Gangster, and Pseudonym columns. Set an Array with VBA in Excel Steps: ...

How to Select Visible Cells in Excel with VBA: 5 Easy Methods

Method 1 - Select Only Visible Cells Steps: ⧭ Open VBA Window: VBA has its own separate window to work with. You have to insert the code in ...

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo