Introduction & Scope
  • Course Structure & Content
  • Important Compatibility & Setup Information
  • Course Resources: Download Course Project Files
  • Course Expectations
  • Course Outline for Quick Reference
Your First Macro
  • Overview: Macros & Visual Basic Editor (VBE)
  • Steps to Your First Macro Recording
  • Visual Basic Editor: What You Need to Know
  • Project: Dynamic Cell Selection (Special Cells) - Perfect for Flexible Macros
  • Project: Copy (Consolidate) Data - Absolute versus Relative Macro Recording
  • 7 Ways to Run Macros / VBA code (incl. creative & modern buttons)
  • OFFICE 365 Update: Change from Excel Comments to Notes
  • Activity: Record a Macro that Deletes all Comments
  • What's the Difference Between Macros and VBA?
  • Quiz: Test Your Knowledge on Macros
The Object Model
  • Overview: VBA Object Model (What you need to become an expert in VBA)
  • VBA's Code Reference Object Library
  • VB Color Guidelines & Keyboard Shortcuts
  • Excel VBA Object Model
  • Object Properties
  • Object Methods
  • How to Find the Object, Property & Method
  • Test Your Knowledge about the Object Model
  • Conclusion: Key Takeaways & Message from Me
Referencing Ranges, Worksheets & Workbooks with VBA
  • Overview: Referencing Ranges, Worksheets & Workbooks
  • Referring to Ranges & Writing to Cells in VBA
  • Most Useful Range Properties & Methods
  • 4 Methods to Find the Last Row of your Range
  • Copying & resizing a variably sized range
  • Properly Referencing Worksheets
  • Properly Referencing Workbooks
  • Activity: Save a Hard-coded Copy of Workbook
  • Project: Save Hard-coded Copy & Macro-free version of workbook
  • Key Takeaways for Referencing Ranges
Working with Variables
  • Overview: Role of Assignment & Variables
  • Data Types for Better Performance
  • Declaring Variables, Arrays & Constants (Role of Option Explicit)
  • Using Object Variables (Set statement)
  • Scoping Variables
  • Activity: Revisit Hard-coded Workbook Project & Use Variable Assignment
  • Test Your Knowledge on Variables and data types
  • Key Takeaways for Working with Variables
Looping through Collections & Making Decisions
  • Overview: Why Collections are a VBA Essential
  • With & End With for Easier Code Writing
  • For Each to Loop Through Collections (sheets, ranges etc.) in one go
  • IF Then (Else, ElseIF) for Conditional Outcomes
  • Select Case as Alternative for Many IF Statements
  • Goto Statement to Change Program Flow
  • Activity: Get the Number of Formulas on the worksheet
  • Project: Get the Number of Formulas on the Worksheet
  • Bonus: Unhide All Sheets in One Go
  • Key Takeaways for Collections & Decision Making in VBA
Useful Built-in Functions
  • Overview: VBA versus Worksheet Functions
  • Most Useful VBA Functions
  • Message Box (also with Yes, No buttons)
  • Input Box (VBA InputBox Function)
  • Input Box that can Select Ranges (Excel InputBox Method)
  • Activity: Show Top 3 Values in a Message Box Based on Range Selected
  • Project: Show Top 3 Values in a Message box based on Range Selected
  • Key Takeaways Built-in Functions
Debugging, Error Handling & Procedure Scope
  • Overview: Debugging, Handling Errors & Procedure Scope
  • Debugging Options: Watch, Locals, Immediate Windows & More
  • Error Handling: Different Methods
  • Faster Code by Suppressing Pop-ups & Flickering Screen
  • Procedure Scope & Running one Sub from Another
  • Passing Arguments to Sub Procedures (By Ref, By Val)
  • Activity: Get the Total Number of Formulas (or Comments) Used in a Workbook
  • Project: Get the Total Number of Formulas (or Comments) Used in a Workbook
  • Key Takeaways Debugging, Error Handling & Course Map Status
Main Project #1: Create a Tool to Automate Table of Contents
  • Project overview: Table of Contents (TOC) with one click
  • TOC Project: The Basics
  • TOC Project: Adding Hyperlinks
  • TOC Project: Testing the VBA Code
  • TOC Project: Adding Error Handling & More Checks
  • TOC Project: Adding to Personal Macro Workbook (Make it Available to all Files)
  • First Milestone Completed!
Looping in VBA (Controlling the Flow of Code)
  • Section Overview: Looping in VBA
  • For Next Counter Loops (Simple Example)
  • For Next Nested Loop (Loop through Text & Cells)
  • For Next Reverse Loop (Delete Filtered/Hidden Rows)
  • Do Until & Do While Loop
  • Practical Example of Do Loop (with Inputbox)
  • Find Method for Quicker Lookup Results
  • Find Method with Do Loop - Multiple Matches
  • Add a Timer to Test & Speech to Inform
  • Activity: Document all Comments in Workbook in a Sheet
  • Project: Document all Comments in Workbook in a Sheet
  • Useful VBA Statements & Key takeaways for Looping in VBA
Working with Arrays
  • Overview: Working with Arrays in VBA