This two-day hands-on course is designed to give those experienced Word users a thorough working knowledge of VBA and will enable them to develop and automate Word solutions. Delegates will examine sample code, learn how to create macros from scratch, be encouraged to write programs so that future maintenance can be carried out with the minimum of effort.
Experienced users of Word who need to develop and enhance their expertise. In particular, delegates should be confident with the fundamental techniques of Word and have a thorough knowledge of templates, styles and fields.
To fully benefit from this course, attendees are expected to be confident users of Word and be familiar with the topics covered in the Word Foundation and Intermediate courses.
Understanding Word Macros • Setting a Macro Security Level • Recording a Simple Macro • Running a Macro • Assigning a Macro to a Toolbar • Modifying a Macro Tool • Assigning a Macro to a Menu • Assigning a Macro to a Shortcut Menu • Creating a Custom Pull-Down Menu • The Many Ways of Running a Macro • Editing a Macro • Deleting a Macro • Removing References to Macros • Creating a Macrobutton Field • Tips for Developing Macros
VBA Terminology • Accessing the Word Object Model • Using the Immediate Window • Working with Object Collections • Setting Property Values • Using the Object Browser • Programming with the Object Browser
Opening and Closing the Editor • Working with the Project Explorer • Working with the Properties Window • Working with the Work Area • Working with a Code Module • Running Procedures from the Editor
Creating a Command Procedure • Making Sense of IntelliSense • Using the Edit Toolbar • Commenting Statements • Indenting Code • Bookmarking in Procedures
Creating & Using Variables • Implicit and Explicit Declarations • The Scope of Variables • Procedure Level Scoping • Module Level Scoping • Passing Variables by Reference • Passing Variables by Value • Data Types • Declaring Data Types • Using Arrays • Using Intrinsic Constants
Functions Theory • Creating & Calling Functions • The MsgBox Function • Sending Messages to the User • Input Techniques • Using the InputBox Function • Nesting Functions • Using Functions in Function Procedures
The If Statement • Using If for Single Conditions • Using If for Multiple Conditions • The Select Case Statement • Using the Select Case Statement • Using Select for Sets of Values • Using Select for Ranges of Values
For Loops • Looping for Each Item • Adding an Exit to a Loop • The Do Loop Statement • Looping with Unknown Iterations
Text & Document Components • The Story Range • The Selection Object • Using the Selection Object • The Range Object • Using Range Objects • The Find Object
The Activate Open & Close Methods • Opening & Closing Documents • The Add Method • The Save & SaveAs Methods • Properties that Return Information • Functions that Return Information • Files Folders & Drives • Working with Files & Folders • Removing Files & Folders • The Application & Options Object
Creating A Custom Form • Adding Text Boxes to a Form • Adding Label Controls to a Form • Changing Text Box Control Properties • Adding a Combo Box Control • Adding Option Buttons • Command Buttons • Changing the Appearance of Controls • Running a Custom Form
Initialising A Form • Closing a Form • Creating Functions for a Form • Coding Option Buttons • Setting Bookmarks for Data Entry • Setting the Tab Order • Forcing Correct Entry • Templates and AutoStart Macros • Creating a Template with AutoMacros
Error Types • The On Error Statement • Creating a Simple Error Handler • Using the Resume Statement • Using Decision Structures in Error Handlers • Defining Custom Errors
The Dialogs Collection • Dialog Box Arguments • Using the Execute Method • Using the Show Method • The Display Method
Microsoft - Word 2007 - Foundation
Microsoft - Word 2007 - Intermediate
Microsoft - Word 2007 - Power User
Sorry, we are not arranging any scheduled public courses for this course.
Perhaps you may like to organise a private training session. Please feel free to contact us. One of our training consultants would be pleased to discuss the best options available for you.
Alternatively, why not design your own course? Our Customised Course Builder will allow you to select the modules appropriate for your particular training needs.