NoProofing Property

Microsoft Word Visual Basic

Find or Replacement object: True if Microsoft Word finds or replaces text that the spelling and grammar checker ignores. Read/write Long.

Range or Selection object: True if the spelling and grammar checker ignores the specified text. Returns wdUndefined if the NoProofing property is set to True for only some of the specified text. Read/write Long.

Style object: True if the spelling and grammar checker ignores text formatted with this style. Read/write Long.

Template object: True if the spelling and grammar checker ignores documents based on this template. Read/write Long.

Example

This example searches for the string "hi" in text that the spelling and grammar checker ignores.

With Selection.Find
    .ClearFormatting
    .Text = "hi"
    .NoProofing = True
    .Execute Forward:=True
End With
		

This example marks the current selection to be ignored by the spelling and grammar checker.

Selection.NoProofing = True
		

This example sets the spelling and grammar checker to ignore any text in the active document formatted with the style "Test".

ActiveDocument.Styles("Test").NoProofing = True