1. Review of programming basics
Core VBA logic relies on a small set of programming constructs used throughout later exercises. Participants revisit variables, operators, functions, procedures, conditional statements such as If, and loops including for and while to read and write code more confidently.
- conditional statements If,
- loops for, while,
- procedures,
- variables,
- functions and operators.
2. Running a macro in MS Word
Before automation can support document work, code must be executed in a controlled way. This section explains how macros are launched in MS Word and how their execution fits into routine user actions, testing, and the use of procedures created during development.
3. Programming in the VBA language in the Word program
Tables, images, shapes, and text are handled in Word through dedicated objects and methods. This part develops practical coding patterns for manipulating these elements in VBA, while also introducing work with other document objects used in everyday automation tasks.
- tables,
- images,
- shapes,
- working with text,
- other objects.
4. MS Word object trees
Word's object model is easier to navigate once the hierarchy of key objects is clear. The section concentrates on Selection and text-related objects, helping participants understand how VBA addresses positions, ranges, and editable content inside a document.
- Selection objects,
- text objects.
5. Form elements
Form-based interaction in Word depends on the right type of control. This section distinguishes standard form controls from ActiveX controls and shows how they are used in VBA-driven documents to capture input, guide users, and support automated processing logic.
- form controls,
- ActiveX controls.
6. Document elements
Working with document content at scale requires precise control over text and structure. Here the focus is on dynamic text operations, handling large files, organizing content, and managing specific document areas so automation remains reliable in complex Word files.
- dynamic work with text,
- work with large files,
- content management,
- management of document areas.
7. MS Word Events
When actions need to happen automatically, Word events become the control mechanism. The material covers auto macros, document-level events, and application-level events, explaining how code reacts to user activity or system triggers without manual intervention.
- automatic macros,
- document-level events,
- application-level events.
8. Saving a document with the VBA language
Saving a document through VBA involves more than calling a single method. The section addresses how code controls file persistence within Word workflows, so automated changes to content, structure, or form elements can be stored consistently as part of a larger process.
9. Other possibilities of the VBA language
Beyond Word itself, VBA can coordinate work between applications in the Office suite. This part focuses on exchanging data and triggering operations across tools, showing how one script can support document processes that depend on Excel, Outlook, or other components.
- communication between Office suite applications.
10. Training summary
The closing part consolidates the full workflow of automating Word with VBA, from macro execution and object handling to event-driven actions and document saving. It also helps connect core language elements with Word-specific mechanisms so the overall structure of solutions remains clear.