The VBA Tutorials Blog
Excel VBA Tutorials
VBA FreeFile for Foolproof File IO
Nov 22, 2016
The VBA FreeFile function reserves the next available file number for VBA file IO. FreeFile returns an integer that you can use to open, read and write files.
Loop Through the Alphabet with VBA Asc and VBA Chr
Nov 11, 2016
Loop through the alphabet with the Excel VBA Asc and VBA Chr functions. Copy and paste this flexible macro into your own project to loop through the alphabet.
Improve VBA RTrim to Remove Trailing Spaces in Excel
Nov 4, 2016
The VBA RTrim function is a fast way to remove trailing spaces, but what if you want to trim all trailing whitespace, like new line characters and tabs?
VBA Write to Text File with Print Statement
Oct 28, 2016
Use VBA to write to a text file without quotes by using the Print Statement instead of the Write Statement. Creating text files is easy with VBA.
VBA Close UserForm with Unload Me
Oct 15, 2016
Close a UserForm with VBA by using the Unload Me VBA statement. You can also unload userforms with different names by replacing Me with the name of your form.
Use VBA to Mute, Unmute, Volume Up and Volume Down
Oct 8, 2016
Did you know you can use VBA to control your computers speakers? This tutorial shows you how to mute and unmute your volume and turn your volume up and down.
Dynamic Array with ReDim Preserve VBA
Oct 7, 2016
Make a dynamic array with the ReDim Preserve VBA statement. This tutorial will also show you how to make dynamic arrays with 2D and multidimensional arrays.
Prevent Runtime Error 438 in Outlook Application.FileDialog
Sep 24, 2016
The Application.FileDialog dialog boxes will fail with run-time error 438 when running from Outlook VBA. This tutorial shows you how to prevent the error.
VBA Select Folder with msoFileDialogFolderPicker
Sep 23, 2016
Use msoFileDialogFolderPicker to browse for and select a folder with VBA. msoFileDialogFolderPicker is part of the Application.FileDialog family in Excel.
VBA StrReverse to Reverse the Order of a String in Excel
Sep 9, 2016
The VBA StrReverse function reverses the order of a string in Excel. In other words, StrReverse writes your string backward so the string abc becomes cba.
Discover how this Nuclear Engineer Mastered Excel VBA
And why you should, too
Your time is valuable. It's time to become a VBA expert.
Subscribe to wellsr.com
Sign up for my Mastering VBA Newsletter
And get the power of wellsr.com right in Excel with a FREE copy of my Excel Add-In.
Most Popular Posts
3 Ways to Call a Private Sub from Another Module
Run Excel Macro Without Opening Excel
Open and Close File with VBA Shell
Create an Excel Splash Screen for your Spreadsheet
The Complete Guide to Excel VBA Form Control Checkboxes
Make Dot Grid Paper with Word Document
Latest Blog Posts
Match Value in Range to Same Position in Another Range
Remove Window Border Title Bar around UserForm with VBA
VBA to Only Allow Numbers in Cell or Range
Macro to Enable Trust Access to the VBA Project Object Model
Wait Until a Key is Pressed with GetAsyncKeyState VBA
VBA TextBox Numbers Only using Keypress KeyAscii
Excel VBA Tutorials
Chapter 1: Getting Started
Enable Developer Tab
Open Visual Basic Editor
Create your first Macro
Recording a Macro
Chapter 2: Getting Around
Select and Selection
Chapter 3: Variables and Data Types
VBA Data Types
Variable Scope & Lifetime
More Excel VBA Tutorials