Using macros

You can use macros to automate some of the document processing tasks.

An action or a set of actions that you can play-back to automate tasks Can be created by: Recording a sequence of actions Entering visual basic for applications (VBA). A combination of both methods For more information, look at the online help of Microsoft Word Macros are stored in the word .dot template file.

Macros can be run by selecting Tools > Macro > >Macros… Select the Macro from the list and click on Run.
Note: If you have trouble running macros, check security settings for Word In MS Word, select Tools > Macro > Security.

Predefined useful macros in Rational Publishing Engine.

Two .dot files are shipped with Rational Publishing Engine File.

Macro Overview

Macro Description
updateTOCs Updates all table of contents
updateTablesOfFigures Updates all table of figures
insertOLEs Includes all OLE objects that have not been inserted into document as static image
updateFields Updates all fields (e.g. table and figure captions) of the document
rpe Calls the other macros and saves the document
These macros are also installed in the utils\word subdirectory of Rational Publishing Engine in in text files.

Feedback