Document.CheckGrammar method (Word)
Begins a spelling and grammar check for the specified document or range.
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.
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.