Getting Help

If you are like me, you will probably make extensive use of Microsoft’s Word VBA help files while programming. The simplest way to get help on an item is to place the cursor on that item and press the F1 key. This works not only for VBA language keywords but also for portions of the VBA IDE.

Note that Microsoft provides multiple help files for Word, the VBA language, and the Word object model. While this is quite reasonable, occasionally the help system gets a bit confused and refuses to display the correct help file when you hit the F1 key. (I have not found a simple resolution to this problem, other than shutting down Word and the Visual Basic Editor along with it!)

Note also that a standard installation of Microsoft Office does not install the VBA help files for the various applications. Thus, you may need to run the Office setup program and install Word VBA help by selecting that option in the appropriate setup dialog box. (Do not confuse Word help with Word VBA help.)

Get Writing Word Macros, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.