Email this Page Log Support Call Send Feedback Print

Previous Topic

Next Topic

Book Contents

Book Index

Word Publishing Macros

You can create your own Word macros and Author-it will execute these 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.

How to add Word Publishing Macros

  1. In the Microsoft Word VBA editor open your Word Publishing template. (Author-it.dot by default).
  2. Add a Module called Author-it.
  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.

See Also

Publishing

Publishing a Book

Viewing Your Document's Outputs

Publishing to PDF

Publishing to DITA

Publishing to XML

Publishing from the Command Line

How do I automatically distribute files after Publishing?

How Do I Include Pictures When I Share My Word Document Electronically?

What Windows Help Components Do I Need To Send Someone?

What HTML Help Components Do I Need To Send Someone?

Adding a Full Text Search Engine to your Published HTML

Adding a Customized HTML Template

Using a Customized HTML Frameset

Top of Page Email this Page Log Support Call Send Feedback Print