Expand Minimize

Document.CheckGrammar Method (Word)

Begins a spelling and grammar check for the specified document or range.

expression .CheckGrammar

expression Required. A variable that represents a Document object.

If the document or range contains errors, this method displays the Spelling and Grammar dialog box, with the Check grammar check box selected. When applied to a document, this method checks all available stories (such as headers, footers, and text boxes).

This example begins a spelling and grammar check for all stories in the active document.

ActiveDocument.CheckGrammar
Show:
© 2014 Microsoft