Options.FormatScanning property (Word)
True for Microsoft Word to keep track of all formatting in a document. Read/write Boolean.
expression An expression that returns an Options object.
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.
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.
Sub ShowFormatErrors() With Options .FormatScanning = True .ShowFormatError = False 'Disables displaying squiggly underline End With End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.