CheckGrammarWithSpelling Property Example

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