Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. 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: Make AutoCorrect Pay Attention to Character Case.

Make AutoCorrect Pay Attention to Character Case

Written by Allen Wyatt (last updated November 9, 2019)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


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:

  1. Display the Word Options dialog box. (In Word 2007 click the Office button and then click Word Options. In Word 2010 or a later version, display the File tab of the ribbon and then click Options.)
  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. (See Figure 1.)
  4. Figure 1. The AutoCorrect tab of the AutoCorrect dialog box.

  5. In the Replace box, enter "hsaa" (without the quote marks).
  6. In the With box, enter HSA, in uppercase.
  7. Click on Add. Your new AutoCorrect definition is added to those already maintained by Word.
  8. 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.

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 (7549) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Make AutoCorrect Pay Attention to Character Case.

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

Toggling Font Assignments in a Macro

If you need to quickly switch a text selection from one typeface to another, one way you can do it is with a macro. This ...

Discover More

Capitalizing Just a Surname

Changing the capitalization of text is, believe it or not, a common task in Excel. Common or not, it can be frustrating ...

Discover More

Appending to a Non-Excel Text File

Does your macro need to add information to the end of a text file? This is called appending and is done using the ...

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)

Uppercase and Lowercase AutoCorrect Entries

AutoCorrect can be a great tool to correct, automatically, the typos and wording you enter in a document. Sometimes, ...

Discover More

Correcting Capitalization with AutoCorrect

We all have idiosyncrasies that are evident in how we type. Word can compensate for a lot of these flubs, but it is ...

Discover More

Managing the AutoCorrect List

If you need to delete all the entries in your AutoCorrect list, the easiest way to do so is with a macro. This tip ...

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 two more than 7?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


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.