CheckGrammar Method
TOC
Collapse the table of content
Expand the table of content

Range.CheckGrammar Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Begins a spelling and grammar check for the specified range.

expression .CheckGrammar

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.

Selection.Range.CheckGrammar

Concepts

Other resources

Show:
© 2016 Microsoft