Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Spell Checking Forms.

Spell Checking Forms

Written by Allen Wyatt (last updated October 14, 2021)
This tip applies to Word 2007, 2010, 2013, and 2016


1

Many people use Word to create forms that are then used by others to input information. I am not talking about your average, run-of-the-mill forms which are printed out and reproduced on a copier. I am talking about using forms with Word's special form fields that are used to collect specific data without allowing the user to modify the text surrounding the input fields.

Since these types of forms are protected, by design, the user cannot run certain Word tools on the form and cannot do other things, such as run macros. This is beneficial in many instances, but can be a drawback if you have special needs. One such common need is to run the spell checker on the form after the user inputs their information. However, this cannot be done, again because tools such as the spell checker are disabled.

Truth be told, however, and you will find that when you insert a form field, Word inserts it with the Language attribute set to "no proofing." This means that even if you could run the spell checker, Word would ignore the information typed into the form fields.

While this may sound a bit hopeless, there is a way around it. You can run the spell checker on your form by using a macro. The simplest way to do this is with the following macro:

Sub SCForm()
   ActiveDocument.Unprotect
   Selection.WholeStory
   Selection.LanguageID = wdEnglishUS
   ActiveDocument.CheckSpelling
   ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
End Sub

Note that the macro sets the Language attribute for the entire document to US English. If you are creating forms in some other language, you should make sure that you change the macro so the appropriate language is selected.

When you are making the form, define a style for the input fields. The key attribute of the input field style is that you have to explicitly disable the do not check spelling attribute by following these steps:

  1. Define the field you want to use for your input fields, as described in other WordTips.
  2. Display the Home tab of the ribbon.
  3. Click the small icon at the bottom-right of the Styles group. Word displays the Styles task pane.
  4. In the list of styles shown, hover the mouse pointer over the name of the style you created in step 1. A drop-down arrow should appear at the right side of the style name.
  5. Click the drop-down arrow and choose Modify. Word displays the Modify Style dialog box. (See Figure 1.)
  6. Figure 1. The Modify Style dialog box.

  7. Click on Format and select Language from the pull-down list. Word displays the Language dialog box. (See Figure 2.)
  8. Figure 2. The Language dialog box.

  9. Make sure the Do Not Check Spelling or Grammar check box is not selected.
  10. Click on OK to close the Language dialog box.
  11. Click on OK to close the Modify Style dialog box.
  12. Apply the new style to all your input fields.

There is a drawback to this macro which may not make it acceptable for all uses. When run, the macro spell checks everything in the document, not just the contents of the form fields. This is only a drawback if the form has lots of words which the spell checker may consider misspelled, such as highly technical prose. If you find yourself in such a situation, you will need to create a more complex macro that actually searches for and steps through the fields in the form or you could arrange to add the word to the dictionary file.

There are two things to remember when using this macro with a form:

  • Make sure you associate this form with the template that contains your macro.
  • You will need to assign the macro to the Quick Access Toolbar. This is the only way it can be run. Remember that you cannot access the Macros control when filling in a protected form.

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 (9445) applies to Microsoft Word 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Word here: Spell Checking Forms.

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

Repeating Table Rows with Manual Page Breaks

Need to make sure part of a table is on one page and part on another? The way to do so is not to use manual page breaks, ...

Discover More

Sorting for a Walking Tour

Want to sort addresses by even and odd numbers? By using a formula and doing a little sorting, Excel can return the ...

Discover More

Easily Changing Chart Data Ranges

Want a handy way to make the data ranges for your chart more dynamic? Here are some great ideas you can put to work right ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (ribbon)

Valid Numbers in Form Fields

When you create a form, you need to use special form fields. If you want to limit what users can enter in a form field, ...

Discover More

Protecting Parts of a Document

Word doesn't require you to protect entire documents. Instead, you can protect different sections within a document, as ...

Discover More

Saving and Using a Form

After you have created your custom form, you will need to save it so that you can use it as often as needed. Word makes ...

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 five more than 0?

2018-03-21 15:34:56

Denise

This worked great for spell checking my text form fields. However, now my check boxes and drop-down lists aren't working.
Is there a fix for those issues? Thanks


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.