MS Word VBA Macro Programming (1 day)

This advanced Microsoft Word training course is suitable for experienced Word users.
Experience of other programming languages is useful but not essential.
The MS Word VBA training course shows delegates how to write Word macros as opposed to recording them. Delegates will learn the key elements of VBA and the syntax used to manipulate the key word Word objects such as documents, selections and text objects.
| Macros |
| |
Overview of macros
Recording a new macro
Inserting extra steps
Deleting steps
Attaching a macro to a button
Customising a button |
|
| VBA Editor overview |
| |
The user interface
Toolbars and menus
The Project Explorer
The Object browser
The Properties window
|
|
| VBA essentials |
| |
Modular programming
Creating sub routines
Handling arguments
Creating functions
Functions that return a value
Adding comments
|
|
| Storing data |
| |
Declaring variables
Overview of data types
Storing text
Storing numbers
Storing dates
|
|
| Programming structures |
| |
Overview of control structures
Using conditional expressions
Logical operators
Using looping structures
Breaking out of a loop |
|
| Word objects |
| |
Word documents
The active document
Opening windows
The Range object
The Selection object
Manipulating text
|
|