The VBA Tutorials Blog
Excel VBA Tutorials
Macro to Enable Trust Access to the VBA Project Object Model
Feb 4, 2017
You can programmatically enable trust access to the VBA project object model with this macro. Doing so allows you to add modules and write macros from a macro.
Wait Until a Key is Pressed with GetAsyncKeyState VBA
Jan 29, 2017
This tutorial shows you how to pause your macro until a key is pressed by calling the GetAsyncKeyState function in VBA. Use it to detect any key stroke.
VBA TextBox Numbers Only using Keypress KeyAscii
Jan 20, 2017
Learn how to restrict a VBA UserForm TextBox to numbers only using the VBA KeyPress event and KeyAscii argument. Negative numbers and decimals are also allowed.
ShowModal VBA vbModal and vbModeless
Dec 26, 2016
The ShowModal VBA property controls how a UserForm behaves when displayed. UserForms can be shown as vbModal or vbModeless by setting the ShowModal property.
Declare VBA Array of Strings using Split
Dec 22, 2016
This tutorial shows you how to declare and initialize a VBA array of strings using the Split function. This array of strings solution is compact and efficient.
VBA Mid to Extract Substring from String
Dec 21, 2016
The VBA Mid function extracts a substring from a string. VBA Mid accepts 3 arguments to define which substring you want to extract from your main string.
PDF VBA Excel Add-in
Dec 16, 2016
The PDF VBA Excel Add-in automatically converts your Excel sheets, ranges, tables and charts to PDFs. Rapidly export Excel objects into one or separate PDFs.
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?
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
Find the Closest Number in a Range with this VBA UDF
VBA Random Number with Rnd and Randomize
What You Need to Know about the VBA Round Function
Align Columns Differently in VBA UserForm ListBox
How to Assign a Macro to a Shape in Excel
Show System Tray Notification Balloon when Macro is Done
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