Word.Tips.Net Welcome toWord.Tips.Net

Helpful Links

Tips.Net Home
WordTips Home

Ask a Word Question
Make a Comment

Tips.Net Store

WordTips FAQ
WordTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

Newest Tips

Arranging Document Windows

Specifying a Backup Location

Controlling Chart Gridlines

Merging Table Cells

Collapsing and Expanding Subdocuments

Zooming With the Keyboard

Initiating a New Search

 

Make AutoCorrect Pay Attention to Character Case

Summary: If you rely on AutoText (as most Word users do), you may have noticed that it doesn't always give the desired results with text replacements. This can come about when the tool becomes confused by the letters you are typing. This tip examines ways that you can "unconfuse" AutoText. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

AutoCorrect is a handy feature that helps compensate for "poor typing." (It has helped me tremendously when my fingers get mixed up on which keys should be pressed when. ) There are some instances when AutoCorrect can cause problems, however.

Consider the situation when you have acronyms that are the same as a commonly mistyped word. For instance, "hsa" is recognized by AutoCorrect as a mistyping, and it is automatically corrected to "has." However, HSA is also an acronym for Health Savings Account. If you really meant to type the acronym, you don't want Word to assume you made a typing error and correct it for you.

Unfortunately, there is no way to instruct AutoCorrect to ignore "mistyped" words that are typed in all uppercase. There are, however, two workarounds you can use.

The first workaround is to create a brand new AutoCorrect entry that handles just instances where you want HSA. Follow these steps if you are using Word 2007:

  1. Click the Office button and then click Word Options. Word displays the Word Options dialog box.
  2. At the left side of the dialog box click Proofing.
  3. Click the AutoCorrect Options button. Word displays the AutoCorrect tab of the AutoCorrect dialog box. (Click here to see a related figure.)
  4. In the Replace box, enter "hsaa" (without the quote marks).
  5. In the With box, enter HSA, in uppercase.
  6. Click on Add. Your new AutoCorrect definition is added to those already maintained by Word.
  7. Click on OK.

If you are using an older version of Word, follow these steps instead:

  1. Choose AutoCorrect Options from the Tools menu. Word displays the AutoCorrect dialog box, and the AutoCorrect tab should be selected.
  2. In the Replace box, enter "hsaa" (without the quote marks).
  3. In the With box, enter HSA, in uppercase.
  4. Click on Add. The new AutoCorrect entry is added to the list of entries.
  5. Click on OK.

At this point, every time you type "hsaa" it is replaced with HSA, and every time you type "hsa" it is replaced with "has." This works because the replacement only occurs when Word determines you've finished the word (pressing a space or punctuation mark), and once a replacement is made, Word doesn't go back and make additional replacements. Thus, HSA, as a replacement for "hsaa," is not automatically corrected to HAS.

The second workaround is to allow AutoCorrect to do its work, dutifully changing all instances of HSA to HAS. You can then create a macro that will use Find and Replace to locate all instances of the uppercase word HAS and change them to HSA. The following macro will do just that:

Sub ReplaceHAS()
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .Text = "HAS"
        .Replacement.Text = "HSA"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = True
        .MatchWholeWord = True
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub

The macro works on the entire document. You could assign it to a shortcut key or a toolbar button so that you could use it as one of the finishing steps in your editing process.

Tip #228 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007

More Power! For some people, the prospect of creating Word macros can be scary. WordTips: The Macros can help you conquer your fears and you'll discover you're much more confident and productive as you make Word do exactly what you want. This is an invaluable source for learning macros. You are introduced to the topic in bite-sized chunks, pulled from past issues of WordTips. Learn at your own pace, exactly the way you want.
 
Check out WordTips: The Macros today!