VBA

Scripting inside Microsoft Office.

💡
This course has 3 lessons. Start with the first one and use the next / previous links at the bottom of each lesson — the sidebar keeps the whole course in order.

Lessons

  1. The VBA editor and the languageFinding the VBE, what a macro-enabled file really is, and the declarations and types that keep a module honest.
  2. Macros, worksheets and rangesThe Office object model, reading whole blocks into arrays instead of cell by cell, and where event handlers must live.
  3. Error handling and the classic pitfallsOn Error in place of try/catch, a cleanup pattern that always restores state, and the mistakes that bite every VBA author.

More in Programming Languages

C C++ C# Scala Lua Dart

Last refreshed 2026-09-17.