Microsoft Word Programming with Word VBA

Programming with Word VBA

Duration:
2 Days
Aims:

This course takes the user beyond recording a basic macro and introduces the power of VBA, the programming language behind Word. You will be learning basic programming fundamentals, but this is a non-technical course, suitable for Word users at any level.

Objectives:

On completion of this course attendees will be able to: Insert and manage a variety of Word fields, including form fields; Record and play back macros; Add macros to command buttons and shortcuts; Understand VBA syntax fundamentals; Use Objects, Properties, Methods and Decision Structures; Interface with the user via input and message boxes; Declare Variables; Perform programme looping and debugging.

Pre-Requistites

Attendees should have working knowledge of Word and have a requirement to automate this work.

Versions

Courses are delivered in 2007, 2010, 2013, 2016.

What will I learn?
Get Started
  • - Introduce Visual Basic for Applications
  • - Record a macro
  • - Run a macro
  • - Edit a macro in the Visual Basic editor
  • - Understand the development environment
  • - Use Visual Basic help
  • - Close the Visual Basic editor
Work with Bookmarks and Fields
  • - Define and use bookmarks
  • - Predefined bookmarks
  • - Select a bookmark in a macro
  • - Insert fields
  • - View field results or codes
  • - Field keys: useful fields
  • - Field switches
Work with Procedures and Functions
  • - Understand modules
  • - Create a standard module
  • - Understand procedures
  • - Create a sub procedure
  • - Call procedures
  • - Name procedures
  • - Work with the code editor
Use Expressions, Variables and Intrinsic Functions
  • - Understand expressions and statements
  • - Declare variables
  • - Understand data types
  • - Work with variable scope
  • - Understand constants
  • - Use intrinsic constants
  • - Use message boxes
  • - Use input boxes
Understand Objects
  • - Understand objects
  • - Navigate the Word object hierarchy
  • - Understand collections
  • - Use the object browser
  • - Work with properties
  • - Use the with statement
  • - Work with methods
  • - Declare and use object variables
Control Program Execution
  • - Understand control-of-flow structures
  • - Use the if...end if decision structures
  • - Use the select case...end select structure
  • - Use the Do...Loop structure
  • - Use the For...Next structure
  • - Use the For Each...Next structure
In-Line Forms
  • - Create an on-line form
  • - Create a form: form field options
  • - Protect forms: save forms data only
  • - Print a form
  • - Macros and form fields
User Forms and Controls
  • - Create User Forms
  • - Use the toolbox
  • - Work with User Form properties, events and methods
  • - Understand controls
  • - Set control properties in the properties window
Debug Code
  • - Understand errors
  • - Use debugging tools
  • - Set breakpoints
  • - Step through code
  • - Use break mode during run mode
  • - Determine the value of expressions
Related courses
Run this
course at
your offices
Request a quote
which course
Which level do you need?
Take our online skills assessment
Find out more
Speak to a friendly advisor

call

0333 344 6630

or visit our

Online Chat
Trustpilot