Course modules
10 modules over 5 daysParticipants can structure a VBA project using explicit declarations, procedures and Excel object references.
- VBE project structure, modules, procedures, and Option Explicit discipline
- Excel object model hierarchy: Application, Workbook, Worksheet, Range, Cells
- Declare strongly typed variables, constants, enumerations, and object references
- Scope rules for procedure, module, project, and public declarations
- Use With blocks and Set statements for object handling
- Build parameterised Sub procedures and Function procedures with return values
- Inspect code using breakpoints, Watch windows, Immediate window, and Locals
Participants can use VBA control structures and in-memory data structures to process business data predictably.
- Select Case branches replace nested conditional logic for controlled outcomes
- For Each loops process collections without index management errors
- Do While and Do Until loops manage condition-driven iteration
- Arrays, dynamic ReDim, and LBound/UBound support variable-length datasets
- Collection objects store keyed items and preserve insertion order
- Scripting.Dictionary maps unique keys to values for fast lookup
- Pass arguments ByVal and ByRef to control procedure side effects
Participants can read, validate, transform and write worksheet data using efficient VBA methods.
- Read worksheet ranges into Variant arrays for bulk processing
- Use Range.Find, AutoFilter, and SpecialCells for targeted selection
- CurrentRegion, UsedRange, and ListObject boundaries define reliable input ranges
- Write two-dimensional arrays back to worksheets in single operations
- Build reusable range references with named ranges and structured table columns
- Apply worksheet functions through WorksheetFunction and Evaluate methods
- Validate source layouts before transformation using headers, types, and row counts
Participants can generate controlled reports, PivotTables and formatted workbook outputs through VBA.
- Automate PivotCache creation and PivotTable field configuration from source tables
- Generate management reports with chart objects, page setup, and print areas
- Control number formats, conditional formatting, and table styles through VBA
- Create workbooks from templates while preserving formulas and named ranges
- Copy values, formulas, and formats using explicit PasteSpecial operations
- Refresh connections and PivotTables in defined reporting sequences
- Produce timestamped report files using deterministic naming conventions
Participants can create guided Excel interfaces and event-driven controls for workbook users.
- Workbook_Open and Worksheet_Change events enforce controlled workbook behaviour
- Prevent recursive events with Application.EnableEvents and disciplined error recovery
- Design UserForms with controls, labels, validation, and default values
- Populate ListBox and ComboBox controls from worksheet or array data
- Return validated form inputs to procedures through explicit interfaces
- Build custom Ribbon callbacks for approved automation entry points
- Use data validation and form controls for guided user interaction
Participants can diagnose VBA failures and build recoverable procedures with useful error records.
- Implement On Error GoTo handlers with clean exit paths
- Raise custom errors using Err.Raise and documented error numbers
- Log procedure failures with timestamps, user names, and source context
- Use assertions and precondition checks to detect invalid assumptions
- Step through code with F8, breakpoints, Watches, and call stack
- Refactor duplicate routines into testable helper procedures
- Document assumptions, inputs, outputs, and failure responses in code
Participants can improve automation speed and prevent common worksheet-state and calculation failures.
- Disable screen updating, events, and calculation during controlled batch routines
- Replace cell-by-cell loops with array reads and bulk writes
- Measure elapsed execution time using Timer and structured benchmarks
- Qualify workbook and worksheet references to avoid active-object dependencies
- Limit volatile formulas and repeated property calls inside loops
- Apply CalculationState and Calculate methods for predictable recalculation
- Profile slow procedures by isolating range access and loop counts
Participants can automate controlled file imports, exports and multi-workbook consolidation procedures.
- Use FileSystemObject to inspect folders, create paths, and enumerate files
- Import delimited text using Workbooks.OpenText and QueryTable settings
- Export controlled CSV files with explicit encoding and field order
- Open, update, save, and close workbooks without user prompts
- Consolidate monthly files through folder loops and schema checks
- Reference external workbooks safely using fully qualified paths
- Manage file locks, missing files, and overwrite decisions predictably
Participants can connect Excel VBA procedures to databases, Outlook and selected web services.
- Connect to databases with ADODB connections, commands, and recordsets
- Parameterise SQL queries to filter records and reduce injection risk
- Import query results into Excel tables with defined field mappings
- Build Outlook email drafts with attachments and controlled recipient lists
- Call REST endpoints using XMLHTTP and parse JSON response structures
- Store connection strings and credentials outside visible worksheet cells
- Handle authentication failures, timeouts, and unavailable services explicitly
Participants can prepare VBA solutions for controlled release, support and ongoing maintenance.
- Protect VBA projects, worksheets, and workbook structures with appropriate controls
- Apply macro security settings, trusted locations, and digital-signature principles
- Package automation in .xlsm and .xlam files for distribution
- Version modules with export files, change logs, and release notes
- Review code against naming conventions, dependency maps, and approval criteria
- Prepare a personal automation backlog ranked by business value and risk
- Define support ownership, rollback steps, and user documentation requirements
Exercises and examples are adapted to each cohort's sectors and roles.








