ShowGrammaticalErrors Property

Applies To

Document object.

Description

True if grammatical errors are marked by a wavy green line in the specified document. Read/write Boolean.

Note To view grammatical errors in your document, you must set the CheckGrammarAsYouType property to True.

See Also

CheckGrammarAsYouType property, CheckGrammarWithSpelling property, GrammaticalErrors property.

Example

This example sets Word to check for grammatical errors as you type and to display any errors found in the active document.

Options.CheckGrammarAsYouType = True
ActiveDocument.ShowGrammaticalErrors = True
This example returns the opposite value of the Hide grammatical errors in this document option on the Spelling & Grammar tab in the Options dialog box (Tools menu).

temp = ActiveDocument.ShowGrammaticalErrors