Word: VBA Programming Training (WRD401)
Build practical Word VBA skills to automate documents, create forms and tables, handle data, debug macros, and deliver reliable Microsoft Word solutions.
Register or Request Training
- Private class for your team
- Live expert instructor
- Online or on‑location
- Customizable agenda
- Proposal responses same day as request
Course Overview
This course teaches experienced Microsoft Word users how to program with Visual Basic for Applications (VBA). Participants learn to work in the Visual Basic Editor, automate document tasks, process user input, create custom forms, manipulate Word content, and debug and handle errors in VBA code.
Public classes use the latest software version, with relevant differences noted for earlier versions. Private classes can be taught using the version used by your organization.
Course Benefits
- Navigate the Visual Basic Editor and use its Help and Object Browser features.
- Apply object-programming concepts to automate Microsoft Word tasks.
- Create and work with VBA procedures, event procedures, and macros.
- Declare, name, scope, and use variables effectively.
- Collect user input and use string data to generate document content.
- Apply decision structures to control how VBA procedures run.
- Create custom UserForms with standard dialog-box controls.
- Use Word collections and objects to automate document features such as tables of contents.
- Debug VBA code and handle run-time errors.
- Use automation and error trapping to build more reliable Word solutions.
Delivery Methods
Delivered for your team at your site or online.
Microsoft Certified Partner
Webucator is a Microsoft Certified Partner. We design and deliver training that aligns directly with Microsoft's official technologies, standards, and learning objectives.

Course Outline
- Visual Basic Editor
- Visual Basic for Applications
- Object Programming
- Event Procedures and Macros
- Event Procedures
- Macros
- Using Help
- Getting Help in the Object Browser
- Using the Visual Basic Editor in Word
- The DisplayDate Procedure
- Programming Basics
- Data Basics
- Variable Scope
- Declaring a Procedure-Level Variable
- Naming Variables
- Selecting an Appropriate Data Type and Variable Name
- Using Variables to Accept User Input
- Declaring a Procedure-Level String Variable
- Using the InputBox Function
- Concatenating Strings
- Using String Variables in Word
- Creating a Fax Transmittal Sheet
- Creating the FaxTransmittal Macro Procedure
- Creating a Custom Button
- Control Structures
- Decision Structures
- Using If...Then...Else Statements
- Nesting If...Then...Else Statements
- Using Selection Structures in Word
- The TablesOfContents Collection
- Coding the CreateToc Procedure
- Decision Structures
- Custom Dialog Boxes
- UserForms
- Windows Standards
- Dialog-Box Controls
- Adding a Form
- Using the Toolbox
- Sizing, Moving, Deleting, and Restoring Controls
- Using Option Button, Check Box, and List Box Controls in Word
- The UserForm Initialize Event
- The Enter Button's Open Event Procedure
- Debugging and Error Handling
- Understanding Errors
- Automation and Error Trapping
- Using the GetObject Function
- Intercepting and Handling Run-Time Errors
- Preventing Multiple Application Instances
- Using Automation and Error Trapping in Word
- Modifying the CreateCertificate Procedure
Class Materials
Each student receives a comprehensive set of materials, including course notes and all class examples.
Class Prerequisites
Experience in the following is required for this VBA class:
- Advanced proficiency with Microsoft Word.
Prerequisite Courses
Courses that can help you meet these prerequisites:
Have questions about this course?
We can help with curriculum details, delivery options, pricing, or anything else. Reach out and we’ll point you in the right direction.