Document.ShowGrammaticalErrors property (Word)

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

Syntax

expression. ShowGrammaticalErrors

expression A variable that represents a Document object.

Remarks

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

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

See also

Document Object

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.