CheckGrammarAsYouType 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 status of the Check grammar as you type option on the Spelling & Grammar tab in the Options dialog box (Tools menu).

temp = Options.CheckGrammarAsYouType