Macros & Excel VBA

Excel VBA: Count Rows with Specific Data (8 Examples)

We use Excel VBA code to perform work by simply clicking a single button only. In this article, we will discuss how to count rows with specific data ...

How to Find and Replace Text in Word Document Using Excel VBA (5 Methods)

Method 1 - Using Excel VBA to Find and Replace a Text String in a Word Document Open the Word document that contains the list of products. ...

How to Find and Replace from List with Macro in Excel (5 Examples)

Example 1 - Find and Replace a Word from a List with Excel Macro In the following dataset, we want to find the product Cable and replace it with TV. ...

How to Use Dynamic Range for Last Row with VBA in Excel (3 Methods)

Why Do You Need a Dynamic Range We have a simple dataset with Quantity, Unit Price, and Sales of some Items. We want to find the average, sum, ...

Create Dynamic Named Range with VBA in Excel (Step-by-Step Guideline)

We can refer to a certain range of cells in the Excel worksheet by using the Define Name feature. But, we constantly need to add new data or update ...

Excel VBA to Find and Replace Text in a Column: 2 Methods

Method 1 - Use the Replace Method of VBA to Find and Replace Text in a Column A. Build the Code Open VBA Editor Press Alt+F11 on your ...

Using VBA to Remove Time from a Date in Excel – 3 Methods

  The above image is the sample dataset. Method 1 - Embed VBA to Delete Time from Dates in a Column in Excel Remove time in ...

How to Create a Data Validation Drop-Down List with VBA in Excel (7 Methods)

Method 1 – Embedding VBA to Create a Data Validation Drop-Down List  Steps: Press Alt + F11 or go to the tab Developer -> Visual Basic to ...

Default Value in Data Validation List with Excel VBA (Macro and UserForm)

While working with data validation list (s) in Excel or VBA, we often need to set a default value. In this article, I’ll show you how you can set a ...

How to Calculate the First Day of the Month Using Excel VBA (3 Methods)

Dataset Overview Suppose we have an Excel worksheet containing information about a sales representative named Emma from the Armani group. Her ...

How to Get the Last Day of Month Using VBA in Excel (3 Methods)

This article illustrates 3 different methods to get the last day of the current, past, or future month from a specific starting date using VBA code ...

Excel VBA: Count Unique Values in a Column (3 Methods)

  Overview of the Code Sub Number_of_Values_that_Appear_Only_Once_1() Set Rng = Range("C4:C15") Count = 0 For i = 1 To ...

Excel VBA with Cell Reference by Row and Column Number – 11 Examples

This is the sample dataset. Example 1 - Insert a Value in a Single Cell Using Reference by Row and Column Number with Excel VBA Step 1: ...

Excel VBA: Filter Date before Today (With Quick Steps)

In Microsoft Excel, working with dates is a pretty common thing. And filtering those dates is also a day-to-day task for a lot of Excel users. Now, ...

Excel VBA: Count Rows in Named Range (4 Methods)

We can count rows in a named range by using workbook functions or conditional formatting but if we work with a large amount of data then using VBA ...

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo