Options.FormatScanning Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .FormatScanning

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
Show: