Add Method (Styles Collection)

         Example         Applies To

Adds a new user-defined style to the collection of styles.

Syntax

expression.Add(Name, Type)

expression   Required. An expression that returns a Styles object.

Name   Required String. The string name for the new style.

Type   Optional Variant. The style type of the new style. Can be either of the following WdStyleType constants: wdStyleTypeParagraph or wdStyleTypeCharacter.