AutomaticallyUpdate Property 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