Section 7: Lab: Principles of Cross-Program Automation
- Early binding through References versus late binding with CreateObject
- GetObject to use a program that is already open
- Closing documents, calling Quit and releasing memory correctly
- Lab: open Word from Excel and close it properly even when an error occurs
Section 8: Lab: Creating Word Documents from Excel
- Document, Range, and adding text and tables
- Filling content controls and bookmarks in a template
- Creating many documents from a list in Excel
- Lab: produce a letter for each customer from a template and save it as PDF
Section 9: Lab: Reading Data from Word into Excel
- Looping through tables and cells in a Word document
- Reading values from content controls in a form
- Looping through every document in a folder
- Lab: combine data from many Word forms into an Excel table
Section 10: Lab: Building PowerPoint Slides from Excel
- Presentation, Slide and Shape in the PowerPoint object model
- Adding slides based on the layouts of a company template
- Adding text and tables, and pasting Excel charts onto slides
- Lab: build branch sales summary slides from Excel data
Section 11: Lab: What to Know about VBA in Microsoft 365
- 64-bit Office, and Declare with PtrSafe and LongPtr
- The VBScript deprecation and the RegExp built into VBA
- The new Outlook does not support VBA, and the alternatives
- When to choose VBA, Office Scripts or Power Automate
- Lab: check and update old code to run on 64-bit Office
Section 12: Workshop: An Automated Reporting Add-in
- Workshop: an add-in with a Ribbon tab to choose the data and month
- Create a Word report and PowerPoint slides from Excel data in one click
- Handle errors and log each run
- A checklist before distributing the add-in in your organisation