Range.CheckGrammar method (Word)
Begins a spelling and grammar check for the specified range.
expression Required. A variable that represents a Range object.
If the range contains errors, this method displays the Spelling and Grammar dialog box, with the Check grammar check box selected.
This example begins a spelling and grammar check on section two in MyDocument.doc.
Set Range2 = Documents("MyDocument.doc").Sections(2).Range Range2.CheckGrammar
This example begins a spelling and grammar check on the selection.
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.