Word Publishing Macros


On Premises

Create your own Word macros for Author-it to execute when publishing your document. The macros are launched automatically if the AfterPublish Sub procedure is present in the Author-it template. Macros check and reformat your document as you specify. By default Author-it bookmarks all topics, pictures, hypertext links, Table of Contents,. and Indexes. These can be referred to by your macros.

In order to make full use of this feature you will need to have a good working knowledge of Visual Basic for Word.

To add Word Publishing macros:

  1. Open your Word Publishing template in the Microsoft Word VBA editor. (Author-it.dot by default).
  2. Add a Module called Authorit.
  3. Add a Sub procedure called AfterPublish.
  4. Add your custom VBA code to the Sub procedure.
  5. Save your changes.

Important: You must have Word's security set to low for the macros to run unprompted. If security is set to medium, you are prompted to enable the macros during publishing. If security is set to high, the macros can not be run.