Style.AutomaticallyUpdate Property

Word Developer Reference

True if the style is automatically redefined based on the selection. Read/write Boolean.

Syntax

expression.AutomaticallyUpdate

expression   A variable that represents a Style object.

Remarks

If the AutomaticallyUpdate property is set to False, Microsoft Office Word prompts for confirmation before redefining the style based on the selection. A style can be redefined when it is applied to a selection that has the same style but different manual formatting.

Example

This example creates a style named "Style1" that can be redefined without the need for confirmation.

Visual Basic for Applications
  Dim docNew as Document
Dim styleNew as Style

Set docNew = Documents.Add Set styleNew = docNew.Styles.Add("Style1")

With styleNew .BaseStyle = docNew.Styles(wdStyleNormal) .ParagraphFormat.LineSpacingRule = wdLineSpaceDouble .AutomaticallyUpdate = True End With

See Also