Macros & Excel VBA

Excel VBA: Split String into Cells (4 Useful Applications)

The article will provide you with some useful applications to split string(s) into cells by Excel VBA. We do this often to see necessary data ...

How to Filter a Table based on Cell Values with Excel VBA (6 Methods)

Dataset Overview We've included a sample dataset in the figure below, from which we'll sift through values according to specific cell criteria. ...

How to Remove Filter in Excel VBA (5 Simple Methods)

To remove filters from data, we are going to use the following dataset. It contains some product IDs in column B, product names in column C, and the ...

Excel VBA: Split String by Number of Characters (2 Easy Methods)

In this article, I’ll show you how you split a string by any given number of characters using VBA in Excel. Split String by Number of ...

Subtracting One Range from Another in Excel VBA – 3 Examples

The following dataset contains sales records of different products in different regions.   Example 1 - Getting a Range Address ...

Excel VBA: Split String into Rows (6 Ideal Examples)

In this method, we’re going to show you 6 ways for Excel VBA split string(s) into rows. To demonstrate our methods, we’ve chosen a dataset with 2 ...

How to Hide Blank Rows in Excel VBA (4 Examples)

Below is a dataset of the sale details for different products. It contains a couple of blank rows that we will hide using simple VBA code. The ...

Excel VBA: Unhide All Rows in Excel (5 Practical Examples)

The article will provide you with some basic concepts on how to unhide all rows by using Excel VBA. Suppose, you had a large dataset and you didn’t ...

Using a VBA IF Statement with Multiple Conditions in Excel – 8 Methods

Method 1 - Using a VBA IF Statement with Multiple Conditions: IF with OR Consider the following macro. Sub IfWithOr() If 5 < 10 Or 10 < 5 ...

Split a Workbook to Separate Excel Files with VBA Code: 3 Ways

Method 1 - Split a Worksheet of a Workbook Based on a Column to Separate Excel Files Step-01: ➤ Go to the Developer Tab >> Visual Basic ...

Excel VBA: Get Row and Column Number from Cell Address (4 Methods)

How to Write Code in the Visual Basic Editor To get row and column numbers from cell addresses, we need to open and write VBA code in the Visual ...

Excel VBA: Create New Line in MsgBox (6 Examples)

Example 1 - Use vbNewLine to Add New Line in MsgBox Using Excel VBA We will show “Hello!” in the first line and “Welcome to ExcelDemy” in the second ...

How to Separate Numbers from Text in Excel VBA – 3 Methods

Quick View Public Function SeparateText(Rng As Range, Number As Boolean) As String Dim a As Long Dim b As String a = VBA.Len(Rng.Value) For i = ...

Excel VBA: Set a Range by Row and Column Number – 3 Examples

This is a quick overview. Method 1 - Set a Range by Row and Column Number Using the Cell Address in VBA To set B4:D13, use ...

Excel VBA to Get Unique Values from Column (4 Examples)

We will use the following dataset to get unique values from a column. The dataset contains some products in column B and the country where the ...

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo