Document.CheckGrammar method (Word)

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

Syntax

expression. CheckGrammar

expression Required. A variable that represents a Document object.

Remarks

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

Example

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

ActiveDocument.CheckGrammar

See also

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