CheckGrammarWithSpelling Property
TOC
Collapse the table of content
Expand the table of content

Options.CheckGrammarWithSpelling Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if Word checks grammar while checking spelling. Read/write Boolean.

expression .CheckGrammarWithSpelling

expression A variable that represents a Options object.

This property controls whether Word checks grammar when you check spelling by using the Spelling command (Tools menu).

To check spelling or grammar from a Visual Basic procedure, use the CheckSpelling method to check only spelling and use the CheckGrammar method to check both grammar and spelling.

This example returns the status of the Check grammar with spelling option on the Spelling & Grammar tab in the Options dialog box. If the option is selected, the procedure checks both spelling and grammar for the active document; otherwise, only spelling is checked.

If Options.CheckGrammarWithSpelling = True Then 
 ActiveDocument.CheckGrammar 
Else 
 ActiveDocument.CheckSpelling 
End If
Show:
© 2016 Microsoft