VBA for Excel
Learn to automate tasks, build custom tools, and streamline workflows using Excel VBA. Ideal for analysts, students, and professionals ready to boost productivity and unlock Excel's full potential.
Welcome to VBA for Excel!
What is VBA?
Course Outline
Course Resources
Developer Tab
Saving Macro-Enabled Workbook
Trust Center
Trusted Locations
Introduction
Record Macro Window
Recording First Macro
Run The Macro
Macro VBA Code
Review Macro File
Introduction
File Tab
Remove Module
Import Module
Menu Bar - View / Insert / Debug
Toolbar - Standard
Project Window
Code Window
Properties Window
Immediate Window
Tips & Advanced Topics
Planning your Macro
Adding Comments - Part I
Adding Comments - Part II
Macro Recording Steps
Record with VBE Window Open
Running the Macro Recorder
Stopping the Macro Recorder
Re-Record Macro
Running the Macro
Cleaning the Macro
Sub Procedure vs Function Procedure
Excel Objects
Hierarchy and Collections
Object Properties
Methods & Events
Referencing Introduction
Fully Qualified Reference
Active Workbook References
Referencing Worksheets
References Summary
Introduction - Basic Message Box
Create Message Box
Intro & Setup
Select Method
Cells Property
Name Property
Copy & Paste Methods
Font & Interior Properties
Clear & Delete Methods
Value Property
Count Property
Row & Column Properties
Address Property
Path Property
FullName Property
Formula Property
HasFormula Property
Offset Property
Summary
Object Browser
Introduction
Variable Example
Data Types
Equal Sign
Variable Scope
Summary
What are VBA Arrays?
Creating an Array
Populating an Array
Multidimensional Arrays
Dynamic Arrays
Dynamic Arrays Part II
Dynamic Arrays Part III
Summary
Introduction
Single Condition IF
Multiple Condition IF
Summary
Introduction
Select Case - Example 1
Select Case - Example 2
Summary
Introduction
With...End With Part I
With...End With Part II
Summary
Introduction
For Next Loop
For Next Loop (Step)
For Each Loop
Do While Loop
Do Until Loop
Summary
Introduction
Function Classes
User Defined Function (UDF) Example
Volatile Functions
Execute UDFs
Summary
Introduction
Workbook Event
Worksheet Event
OnTime Method
Summary
Introduction
On Error GoTo
On Error GoTo 0
Error Number & Description
On Error Resume Next
If Statement
Summary
Introduction
Step Into / Step Over / Step Out
Breakpoints
Immediate Window
Locals Window
Watch Window
Call Stack Window
Message Boxes
Comments (Apostrophe)
Summary
Recap
Congratulations