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

Spell Checking Forms

Written by Allen Wyatt (last updated June 30, 2020)
This tip applies to Word 97, 2000, 2002, and 2003


5

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. Since the macro will need to overcome the obstacles mentioned above, it must both unprotect the form and change the Language attribute for the fields. 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.

There is also 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.

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

  • Make sure you associate this macro with the template that contains your macro.
  • You will need to assign the macro to either a keyboard combination or a toolbar button. This will not only make it easier for the person using the form, but it is the only way it can be run. (Remember that you cannot access the Macros menu when filling in a 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 (1040) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) 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

Adding a Font Menu

You can customize Word so it includes a Fonts menu.

Discover More

Changing the Style Gallery

The style gallery appears on the Home tab of the ribbon. You may want to modify how Word displays styles within the ...

Discover More

Changing a Macro Description

Part of documenting macros is to provide a good, succinct description of what they do. Changing the description of an ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

More WordTips (menu)

Replacing Two Tabs with a Space in Limited Situations

The Find and Replace feature of Word is very powerful, allowing you to finely target exactly what you want to search. ...

Discover More

Hiding Spelling Errors

When you are typing in a document, Word normally checks your spelling in the background, marking possible spelling errors ...

Discover More

Getting Rid of Fragment Warnings

Word provides a wide variety of tools that ostensibly help make you a better writer. One of those tools is the grammar ...

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 5 - 5?

2021-01-13 15:20:39

Deborah D Olsen-Busch

Does this macro work on content controls as well as form fields?


2018-07-18 16:04:42

Liz

Sorry, I haven't worked with Macros before. Can you update this is start from the beginning of creating the macro? Also, don't we need to add the password to the code? And is there a way to set a Spell Check button in the tool bar if you can't get the red squiggly line to show that a word is misspelled? Thanks!


2016-10-26 19:05:00

Audrey

How do I make the red squiggly line on protected field as they type the answers to indicate a word was spelled wrong.

Thanks!


2016-07-20 04:40:42

Sam

Hi,
Thank you for this - I have found it works fine on a short form but on longer forms it simply jumps to the first form field when I click on it. I've tried restarting in a whole new document but once the form gets too big this happens every time - any ideas please?
Thanks!


2015-12-14 15:46:52

David Evans

Works great - thanks.
It would also be nice to figure out a way to make such forms respond in the normal way to selecting text. Double-clicking a word in a protected form doesn't progressively select the word, then paragraph, and dragging doesn't select the words that should be selected.


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon 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.