Options.CheckGrammarAsYouType property (Word)

True if Word checks grammar and marks errors automatically as you type. Read/write Boolean.

Syntax

expression. CheckGrammarAsYouType

expression A variable that represents a 'Options' object.

Remarks

This property marks grammatical errors, but to see them on screen, you must set the ShowGrammaticalErrors 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

This example returns the status of the Check grammar as you type option on the Spelling & Grammar tab in the Options dialog box (Tools menu).

Dim blnCheck As Boolean 
 
blnCheck = Options.CheckGrammarAsYouType

See also

Options 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.