Archive

Excel VBA: Replace Text in a String (Step-by-Step)
Learn how to replace text in a string using Excel VBA's Replace function, with step-by-step examples, common mistakes, and troubleshooting tips.
Excel VBA: Save File with Date and Time in Name
Learn how to save an Excel file with the current date and time in its name using VBA. Step-by-step code, common mistakes, and troubleshooting.
Excel VBA: How to Save a Range to a File
Save any Excel range to its own file with a short VBA macro. Copy, paste to a new workbook, SaveAs — plus CSV, PDF and dynamic filenames.
Excel VBA Script to Send Email: Step-by-Step Guide
Send email from Excel with a short VBA script that drives Outlook. Step-by-step code, common mistakes and fixes for when it will not send.
Excel VBA: Select Range Based on Cell Value
Select a range in Excel VBA from a cell value using Range, Cells, or Find, with working code, fixes for error 91 and 1004, and practical tips.
Excel VBA: Send Email to Multiple Recipients
Send one email to many people from Excel using VBA and Outlook. Step-by-step code, address lists, Bcc, and fixes for common errors.
Excel VBA Send Email via SMTP: Step-by-Step Guide
Send email from Excel VBA over SMTP using the built-in CDO library. Step-by-step code, port and SSL settings, common errors, and fixes.
Excel VBA Send Email With Range of Cells: How-To
Send an Excel range by email with VBA: build an HTML table, open an Outlook draft, and fix the common errors. Copy the working macro and run it.
Excel VBA Send File as Email Attachment: Step-by-Step
Use Excel VBA to send a file as an email attachment via Outlook. Step-by-step code, common mistakes, and troubleshooting for reliable automation.
Excel VBA: Send a Range as Email Body
Send an Excel range as an email body using VBA and Outlook. Step-by-step guide with code, common mistakes, and troubleshooting.
Excel VBA: Set a Date Variable (Step-by-Step)
Learn how to set a date variable in Excel VBA using DateSerial, Date, and CDate, with fixes for locale errors and type mismatches. Step-by-step guide.
Excel VBA: Set Print Area with a Variable Range
Learn how to set a dynamic print area in Excel VBA using variables for last row and column. Step-by-step code, fixes and tips.
Excel VBA Set Range Variable: Step-by-Step Guide
Learn how to set a range variable in Excel VBA with clear steps, common mistakes, and troubleshooting. Master this essential skill quickly.
Excel VBA Set Workbook Variable: A Complete Guide
Learn how to use the Set keyword to define workbook variables in Excel VBA to create stable, professional macros. Step-by-step guide.
Excel VBA Set Worksheet Name Variable Guide
Learn how to set a worksheet name variable in Excel VBA to create dynamic macros. Step-by-step guide to avoid errors and improve your code.
Excel VBA Single Worksheet: How to Target One Sheet
Learn how to write Excel VBA code that targets a single worksheet to prevent errors and automate your data accurately. Step-by-step guide inside.
Excel VBA Sort by Date: Step-by-Step Guide
To sort by date using Excel VBA, you must define the range of your data, specify the column containing the dates, and set the sort order to either...
Excel VBA Sorting: Step-by-Step Guide
Learn how to sort data in Excel using VBA with clear, step-by-step instructions. Includes multi-level sorts, common mistakes, and troubleshooting tips.
Excel VBA Split Cell Value: Guide and Code Examples
To split a cell value using Excel VBA, you use the Split() function, which breaks a string into an array based on a specified delimiter (such as a comma...
Excel VBA Start Loop: A Step-by-Step Guide
Learn how to start a loop in Excel VBA with clear steps for For, Do, and For Each loops, plus fixes for common errors. Start coding today.