Get Help for Visual Basic for Applications in Word

Do one of the following:

Get general Microsoft Visual Basic Help

  1. On the Tools menu, point to Macro, and then click Visual Basic Editor.
  2. Do one of the following:
  3. In the Assistant, type the method, property, function, statement, or object you want to get help on, or type a query.
  4. Click Search, and then click the topic you want.

Tips

If Microsoft Word displays a macro error

The macro error may have been caused by one of the following:

For more information about how to use the method, search for the method name in Visual Basic Help.

If Word displays a message asking you to turn on trusted access to Visual Basic projects

The appearance of this message indicates that your Microsoft Visual Basic for Applications project does not have access to the Visual Basic object model. To allow this access, use the following procedure.

  1. On the Tools menu, point to Macro, and then click Security.
  2. On the Trusted Sources tab, select the Trust access to Visual Basic Project check box.

Note   By allowing this access, macros in any documents that you open can access the core Visual Basic objects, methods, and properties. This represents a possible security hazard.