AutomaticallyUpdate Property

Applies To

Style object.

Description

True if the style is automatically redefined based on the selection. False if Word prompts for confirmation before redefining the style based on the selection. A style can be redefined when it's applied to a selection that has the same style but different manual formatting. Read/write Boolean.

Example

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

Set myDoc = Documents.Add
Set myStyle = myDoc.Styles.Add("myStyle")
With myStyle
    .BaseStyle = myDoc.Styles(wdStyleNormal)
    .ParagraphFormat.LineSpacingRule = wdLineSpaceDouble
    .AutomaticallyUpdate = True
End With