Introduction to VBA
Worksheet Operations
Learn how to add Excel worksheets with VBA. Covers Worksheets.Add basics, sheet naming rules and forbidden characters, p
Learn how to delete Excel worksheets with VBA. Covers the Delete method, suppressing the confirmation prompt with Displa
This guide explains how to retrieve a specific worksheet using VBA. It covers methods to specify by name, by index, and
Learn how to move worksheets to the start, the end, or before/after a specific sheet with the Excel VBA Move method, inc
This article explains how to effectively pass arguments to batch files, from basic usage to setting options, with clear
Learn how to select sheets with the Excel VBA Select method: by name or index, multiple sheets at once, and adding sheet
Workbook Operations
This page introduces how to close a workbook with VBA using the Close method.
To close an Excel workbook without saving in VBA, pass SaveChanges:=False to the Close method. This article covers code
Learn how to open a workbook using VBA with specific code examples.
This page introduces how to open a workbook as read-only using VBA.
commands
This article explains how to retrieve the currently active sheet in Excel using VBA, along with examples. It also discus
Learn how to use the GoTo command in VBA to jump to specific points in your code.
Learn how to use VBA InStr and InStrRev functions to search for specific text within strings and get their position. Ess
Learn how to use the VBA Join function to combine array elements into a single string with a specified delimiter. The re
Learn how to use the VBA Split function to divide strings by a delimiter and convert them to arrays. Essential for CSV p
Learn how to use VBA Trim, LTrim, and RTrim functions to remove leading and trailing spaces from strings. Essential for
Tips
Do you experience screen shaking or frequent switching between processing mode and normal mode while running your create
By using arrays, you can store multiple pieces of data in a single variable. This page explains how to define and manipu
Encode text to Base64. Parameters: text (value to be converted). Returns: Base64 formatted data. Test execution: Debug.P
This article explains how to perform character escaping in VBA, such as double quotes and newline characters. It also de
The VBA Collection object is a convenient data structure for flexibly managing multiple items. This article explains eve
Master VBA debugging techniques to efficiently find and fix bugs. Learn about Debug.Print, the Immediate Window, breakpo
The VBA Dictionary object is a powerful data structure for managing key-value pairs. This article explains everything fr
Learn how to use the VBA Dir function to list, search, and work with files and folders. From basics to wildcards, subfol
Learn how to remove empty-string ("") elements from a VBA array. Covers single-pass filtering with ReDim Preserve, avoid
A comprehensive guide to FileSystemObject (FSO) in VBA for file and folder operations. Learn file reading/writing, folde