Macros & Excel VBA

How to Use the VBA DateAdd Function in Excel

The VBA DateAdd function is under the date and time category of Excel’s VBA functions. By using this function we can add or subtract years, months, ...

How to Switch Rows and Columns in Excel (5 Methods)

The dataset below shows the market share of smartphone companies. Method 1 – Using the Paste Special (Transpose) Steps: Select the ...

How to Use the Left Function in VBA in Excel (2 Examples)

One of the most important and widely used functions that we use while working with VBA in Excel is the Left function of VBA. It takes a value as the ...

How to Call a Sub in VBA in Excel (4 Examples)

Example 1 - Call a Sub without Arguments from Another Sub in VBA in Excel We will call a Sub without any argument from another Sub in VBA. Sub1 ...

How to Return a Value in VBA Function (Both Array and Non-Array Values)

In this article, I’ll show you how you can return a value from a User-Defined Function in VBA in Excel. I’ll show you how to return an array value, a ...

VBA Sub Vs Function in Excel (5 Differences)

In this article, I'll compare Sub Vs Function in VBA in Excel. Sub and Function are two important and widely used features that we use while working ...

How to Use POWER Function in Excel (5 Suitable Examples)

The POWER function is a built-in function in Excel that is categorized as a Math/Trig Function. It is one of those essential functions. In this ...

How to Convert Range to Array in Excel VBA (3 Ways)

Below is a dataset with the names of students and their marks in Physics, Chemistry, and Mathematics at Sunflower Kindergarten. Method 1 - ...

Excel Formula to Change Text Color Based on Value: 3 Ways

Method 1 - Using ISODD Function Steps: Select the column where you want to change the text color. Go to the Home tab. Select the New Rule ...

If Statement in Excel VBA

In this article, I’ll show you how you can use the If statement in VBA in Excel. You’ll learn to use the If statement, along with to use the ElseIf ...

How to Use ColorIndex in Excel VBA (4 Examples)

Excel VBA ColorIndex Codes Check out the picture below for the ColorIndex of all the colors available in Excel VBA. Here’s a dataset with ...

How to Add Characters in Excel (with Formula, Flash Fill & VBA)

Here's an overview of a method where characters are added using Flash Fill. Download the Practice Workbook Add Characters.xlsm ...

How to Unhide Columns in Excel (8 Methods)

In this article, we are going to illustrate 7+ methods with examples to unhide columns in Excel. The feature to hide a column in Excel makes columns ...

How to Use the VLOOKUP Function in Excel VBA – 4 Examples

Quick View: Sub VLOOKUP_with_User_Defined_Lookup_Value() Book = InputBox("Enter the Name of the Book: ") Set Rng = Range("B4:D13") MsgBox ...

Macro to Insert Row and Copy Formula in Excel (2 Methods)

In this article, I’ll show you how you can develop a Macro to insert a row and copy a formula using VBA in Excel. You’ll learn to insert one or more ...

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo