Avoiding the "Check Remainder" Dialog Box

Written by Allen Wyatt (last updated November 10, 2023)
This tip applies to Word 2007, 2010, and 2013


3

Sarma frequently checks grammar (and readability) of only a portion of the document, and he uses a macro to do it. It would be helpful to have the macro to bypass the "do you want to check the remainder" dialog box that spellchecker always displays, but Sarma doesn't know how to do this.

There are two distinct things being referenced by Sarma: the spellchecker and the grammar checker. Sarma wants to use the grammar checker, but it is apparently the spellchecker that is displaying the dialog box that he wants to avoid.

There are two types of dialog boxes that you can access through macros when it comes to spellchecking and grammar checking. One is a combined dialog box (which handles spelling and grammar together) and the other is a "separated" dialog box that deals with either grammar checking or spellchecking, independently. The dialog boxes appear nearly identical but they operate differently. To make matters more confusing the dialog box title is "Spelling & Grammar" even for the single-action versions.

If you click the Spelling & Grammar tool on the Review tab of the ribbon, Word opens the combined dialog box. This dialog box can also be opened with the following macro command:

Dialogs(wdDialogToolsSpellingAndGrammar).Show

This dialog box will check both spelling and grammar. When the end of the selected text has been reached then the message appears "Word has finished checking the selection. Do you want to continue checking the remainder of the document?"

To display the single-purpose dialog box to check grammar, you can use this command, instead:

Selection.Range.CheckGrammar

The dialog box appears very similar to the combined-purpose dialog box, but it is subtly different in usage. Since no spellchecking is being done, no "check remainder" dialog box will be displayed when the grammar checking is complete.

As an example of how to effectively check just the grammar of a selection, consider the following macro:

Sub CheckGrammarInSelection()
    Dim aRange As Range

    Set aRange = Selection.Range
    aRange.GrammarChecked = False
    ActiveDocument.ShowGrammaticalErrors = True
    If Selection.Range.Characters.Count > 0 Then
       Options.CheckGrammarWithSpelling = True
       Selection.Range.CheckGrammar
    End If
    aRange.Select
    aRange.GrammarChecked = False
End Sub

The macro starts by making sure that any "already checked" flags for the selection are cleared (through the GrammarChecked property) and then checks the selection.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (9950) applies to Microsoft Word 2007, 2010, and 2013.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Taking a Picture

Excel allows you to capture portions of your worksheet as a picture that you can then use in a variety of other ways. ...

Discover More

Removing Line Numbering

If you've added line numbers to your document, at some point you may want them turned off. Here's how to disable line ...

Discover More

Years in Which a Date Occurred on a Particular Day

If you need to know the years in which a particular date occurred on a specific day of the week, there are a number of ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Disappearing Readability Statistics

Word provides some handy document analysis that can help improve your writing. One such tool is the readability ...

Discover More

Contractions Flagged as Incorrect

Word, in its never-ending quest to second-guess and try to improve your writing, may be marking your contractions as ...

Discover More

Adding Phrases to the Grammar Checker

Word's grammar checker dutifully tries to mark all the questionable grammar in your sentences. If you are tired of a ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is eight more than 3?

2022-07-28 12:19:18

Jill

I've read this article, but still do not have a clue how to avoid getting this annoying message. I don't know code. I was just hoping there was some option in the Proofing dialogue box that I could check/uncheck. Is there not an easy solution?


2015-04-22 21:27:06

Ken Endacott

There is yet another version of the Spelling & Grammar dialog box that will check grammar only. To use this version you need to customize the ribbon by adding the command ‘Grammar’ from the All Commands list. It gives a version of the dialog box different to the macro command Selection.Range.CheckGrammar.

The Grammar command brings up a dialog box that looks like the Spelling & Grammar dialog box except it has the title Grammar and it has the Next Sentence button active. It will bring up the ‘...check the remainder...’ message at the end of so it does not meet Sarma’s requirements but it does give readability statistics.


2015-04-18 05:51:59

sarma

Many thanks. This is a handy tool for me. I'll try to modify the macro to display Readability statistics at the end.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.