Syntax
FormatAutoFormat
Remarks
Automatically formats a document according to the options set with ToolsOptionsAutoFormat. To control the look of the document, you can use FormatStyleGallery to copy styles into the active document before or after running FormatAutoFormat.
Example
This Windows example automatically formats the active document using styles in REPORT1.DOT. On the Macintosh, substitute "REPORT 1" for "REPORT1."
FormatStyleGallery .Template = "REPORT1" FormatAutoFormat
See Also
FormatStyleGallery, ToolsOptionsAutoFormat