Creating Macros That Run Automatically

In most cases you should give your macro a name that describes its function, so that you can easily remember its purpose at a later time. There are, however, several special names you can give your macros. These names cause your macros to run automatically when certain events occur in Word:

  • A macro named AutoExec runs when you start Word. For this macro to work you need to store it in your Normal.dot template or another global template.

    Note

    The capitalization used for macro names in this discussion isn't required. These are the names as they are referred to in the Microsoft Word documentation. Because other programmers are familiar with the capitalization used here it is recommended that you use the same ...

Get Special Edition Using Microsoft® Word 2000 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.