Skip to content
- Excel VBA Match Date: Find Dates in a RangeTo match a date in an Excel range with VBA, use Application.Match with match type 0, which requests an exact match. For…VBA & macros
- Excel VBA Macro to Send an Email With a Table in the BodyYes. In Excel for Microsoft 365 on Windows, a VBA macro can turn a worksheet range into an HTML table and place…VBA & macros
- Excel VBA Macro Recorder: How It Works and When to Use ItThe Excel VBA macro recorder turns many actions you perform in a workbook into VBA code that you can run again. In…VBA & macros
- Excel VBA Lowercase: Use LCase in Macros and FunctionsIn Excel VBA, use the built-in LCase function to convert text to lowercase; its string-returning counterpart, LCase$, is also available. For example,…VBA & macros
- Excel VBA Array Loops: For, For Each, and ExamplesTo loop through an array in Excel VBA, use For Each when you need each value, or a For loop with LBound…VBA & macros
- Excel VBA Loop Through Used Rows: Safe, Fast MethodsTo loop through rows Excel considers used, set a range to the worksheet’s UsedRange and iterate over its rows. For a regular…VBA & macros
- Excel VBA: Loop Through Visible Rows in Filtered DataTo loop through only visible worksheet rows in Excel VBA, get a range of the data cells and use SpecialCells(xlCellTypeVisible), then process…VBA & macros
- Excel VBA: Loop Through Rows to the Last RowTo loop through data rows in Excel VBA, find the last nonempty cell in a reliable column, then use a For loop…VBA & macros
- Excel VBA: Loop Through Only Visible RowsTo loop through only visible data rows in Excel VBA, apply SpecialCells(xlCellTypeVisible) to a one-column range that excludes the header, then process…VBA & macros
- Excel VBA: Loop Through Rows in a Range EfficientlyTo loop through every row in an Excel range with VBA, use For Each rowRange In dataRange.Rows when you want to process…VBA & macros
- Excel VBA Loop Through Rows: Practical Examples and TipsTo loop through rows in Excel VBA, set a row counter and use a For...Next loop, usually from the first data row…VBA & macros
- Excel VBA Loop Through a Folder: Practical ExamplesTo loop through files in a folder with Excel VBA, use the Dir function to find a matching file, process it, and…VBA & macros
- Excel VBA: How to Loop Through a DictionaryTo loop through a VBA dictionary, use For Each key In dict.Keys, then retrieve each value with dict(key). A dictionary stores data…VBA & macros
- Excel VBA Loop Through Columns: Practical ExamplesTo loop through columns in Excel VBA, use a For loop with a column number, or a For Each loop over a…VBA & macros
- Excel VBA: How to Loop Through an Array of StringsIn Excel VBA, use For Each to visit every string in an array, or use a counter with LBound and UBound when…VBA & macros
- Excel VBA: Loop Through All Sheets in a Workbook SafelyTo loop through every worksheet in a workbook with Excel VBA, use a For Each loop over that workbook’s Worksheets collection. For…VBA & macros
- Excel VBA Loop Syntax: For, Do, and Each ExplainedExcel VBA loops repeat a block of code: use For...Next for a known number of repetitions, For Each...Next to visit every item…VBA & macros
- Excel VBA Loop Statements: Types, Examples, and TipsAn Excel VBA loop statement repeats a block of code, either for a set number of times or while a condition is…VBA & macros
- Excel VBA Loop Over Rows: Examples and Best PracticesTo loop over rows in Excel VBA, use a For...Next loop from the first data row to the last row you want…VBA & macros
- Excel VBA Loop Over an Array: Examples and PatternsTo loop over a VBA array in Excel, use For Each when you need to process every item, or a numbered For…VBA & macros
- Excel VBA: Loop Through JSON Object Arrays Step by StepTo loop through a JSON array of objects in Excel VBA, parse the JSON with a VBA-compatible parser such as VBA-JSON, then…VBA & macros
- Excel VBA Loop Collection: For Each and ExamplesTo loop through a VBA Collection in Excel, use For Each to visit every item, or use a numbered For loop when…VBA & macros
- Excel VBA Log Function: Syntax, Examples, and BaseIn Excel VBA, Log(number) returns the natural logarithm of a positive number—the logarithm with base e. For a different base, divide two…VBA & macros
- Excel VBA: Load a CSV File Into a Worksheet SafelyTo load a CSV file into an Excel worksheet with VBA, use Workbooks.OpenText to parse the file, then copy its cells into…VBA & macros
- Excel VBA Link to Worksheet: Methods and ExamplesIn Excel VBA, link to a worksheet by referring to it with ThisWorkbook.Worksheets("SheetName"); to create a clickable link that takes a user…VBA & macros
- Excel VBA Link to a Range: Methods, Examples, and UsesTo create an internal hyperlink to a cell or range with Excel VBA, use the destination in the hyperlink’s SubAddress argument and…VBA & macros
- Excel VBA Left Function: Syntax, Examples, and TipsIn Excel VBA, Left returns a specified number of characters from the start of a string: for example, Left("Invoice-8472", 7) returns Invoice.…VBA & macros
- Excel VBA LAMBDA: Calling Worksheet Functions from VBAExcel’s LAMBDA function is a worksheet feature, not a VBA language feature: VBA has no built-in anonymous-lambda syntax. You can define a…VBA & macros
- Excel VBA Join Function: Syntax, Examples, and TipsIn Excel VBA, Join combines the items in a one-dimensional array into one string, placing a chosen delimiter between them. Its syntax…VBA & macros
- Excel VBA Join Array: Syntax, Examples, and Common FixesIn Excel VBA, use Join(array, delimiter) to combine the elements of a one-dimensional array into a single string. For example, Join(Array("red", "green",…VBA & macros