Options.FormatScanning Property

Word Developer Reference

True for Microsoft Word to keep track of all formatting in a document. Read/write Boolean.

Syntax

expression.FormatScanning

expression   An expression that returns an Options object.

Remarks

Enabling the FormatScanning property allows you to identify all unique formatting in your document, so you can easily apply the same formatting to new text and quickly replace or modify all instances of a given formatting within a document.

Example

This example enables Word to keep track of formatting in documents but disables displaying a squiggly underline beneath text formatted similarly to other formatting that is used more frequently in a document.

Visual Basic for Applications
  Sub ShowFormatErrors()
    With Options
        .FormatScanning = True
        .ShowFormatError = False  'Disables displaying squiggly underline
    End With
End Sub

See Also