giving people the skills to succeed  
search our website
Courses > IT Courses > Microsoft Word 2007 VBA Programming
 
   
 
Microsoft Word 2007 VBA Programming
 
Target Audience:  

Users who need to automate Word documents and utilise the added functionality made available by Visual Basic for Applications.

 
   
Objectives:  

At the end of the course users will be able to use VBA to create procedures and User Forms to control Word documents.

 
   
Prerequisites:  

An advanced understanding of Microsoft Word and the creation of documents and templates.

 
   
 
       
     
  Duration: 2 Days
  Cost: £495 + VAT
     
 
  Course Date Location
     
Demand led
Call to request dates
     
     
         

Introducing Visual Basic for Applications

  • Exploring the Visual Basic Editor
  • Running Code from the Immediate Window
 

Introducing Visual Basic Code

  • Understanding Objects & Dot Syntax
  • Creating & Organising Modules
  • Commenting & Editing VBA Code
  • The Word Object Model
 

Writing VBA Code

  • Understanding Procedures
  • Organising Code using With...End With
  • Writing Clear & Structured Code
  • Calling Procedures from Different Locations
 

Variables, Constants & Scope

  • Understanding & Naming Variables
  • Declaring Variables & Data Types
  • Declaring & Using Constants
  • Assigning Values & Objects to Variables
 

Message Boxes

  • Creating & Customising Message Boxes
  • Receiving Information from Message Boxes
 

Input Boxes

  • Creating Input Boxes to Receive User Data
  • Understanding & Customising Input Boxes
 
   

Function Procedures

  • Understanding & Using Intrinsic Functions
  • Writing User-Defined Functions
  • Using User-Defined Functions in VBA & the Word Interface
 

Coding with Word Objects

  • Using the Document Collection
  • Using the Table Collection
  • Working with Document Properties
 

Conditional Control Structures

  • Controlling Program Flow Using IF Structures
  • Using Select Case Structures
 

Looping Control Structures

  • Repeating Code Using Loops
    • Definite Loops
    • Indefinite Loops
 

User Forms & Controls

  • Creating User Forms
  • Using Form Controls
  • Adding VBA Code to User Forms
 

Error Handling & Debugging VBA

  • Identifying Error Types
  • Reducing & Debugging Errors
  • Writing Code to Handle Errors