FormatStyleGallery

Syntax

FormatStyleGallery .Template = text [, .Preview = number]

Remarks

Copies the styles from the specified template to the active document. Existing styles are updated.

Argument

Explanation

.Template

The template containing the styles you want to use. Paths are allowed. In Windows, including the .DOT filename extension is not required.

.Preview

Specifies what to preview in the StyleGallery dialog box when you display the dialog box with a Dialog or Dialog() instruction:

0 (zero) Active document

1 Example document

2 List of styles and samples


For an example, see FormatAutoFormat.

See Also

FormatAutoFormat, FormatStyle, ToolsOptionsAutoFormat