Spellchecking Words with Superscripts

Written by Allen Wyatt (last updated December 3, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021


Eloise wants to spell check a long document that has superscripts used in many places. Most of the superscripts are numeric, but some are not. In all instances, the spelling checker marks the words as incorrectly spelled. Eloise could turn off spell checking for words containing numbers (which would help with numeric superscripts), but she really needs all the words to be checked. She wonders if there is a way to tell the spelling checker to ignore the superscripts and just check all the words, including those adjacent to the superscripts.

This is a tricky one, as the spelling checker in Word considers any consecutive characters between spaces or punctuation marks to be a word. Thus, "wordabc" is considered a word, even if the "abc" part is superscripted. If the superscripted part is numeric, you can sort of get around the problem by configuring the spelling checker to ignore words that contain numbers (as Eloise noted), but that doesn't help you if you want to spell-check the base word before the superscript.

There is one way that we found to get around this, and it is (admittedly) a bit of a kludge. Rather than get into detailed steps here, I'll just talk in generalities.

First, you need to define a character style that you want to use for your superscripts. (How you create styles is covered in other issues of WordTips.) Make sure that the formatting of the style is set for superscripts, plus make sure that in the Language options for the style you choose "Do not check spelling or grammar." If you cannot get this setting to "stick" in your style, you may need to choose English as the language for the style and then choose the "do not check" setting.

Now, go through the document and apply the new style to every one of your superscripts. This can be done relatively easily by using the Find and Replace capabilities of Word if you desire.

After doing this, the superscripts will look just fine, but they (and their base word) will still be shown as incorrectly spelled. The reason for this appears to be that the "do not check" setting defined in the style is not checked by the spell checker for every character in the word—or what it thinks is a word. Instead, it bases the "do not check" status of the word on the setting for the first character in the word.

This is the "sticking point" that needs to be overcome—getting the spell checker to recognize that the base word and the superscript are separate from each other. The only way to do this is to position the insertion point between the base word and the superscript and press the space bar once. Do this, and you'll immediately notice that the superscript (as long as it is formatted using your new style) is no longer marked as incorrectly spelled.

For some people, this cure may be worse than the original problem for two reasons: It puts a big, ugly space between the base word and the superscript and it allows the base word and superscript to become "separated" as Word flows text from one line to the next.

The "big ugly space" problem is easy enough to fix: Just select the space and format it to something very, very small, such as a 1-point font. With this done, neither you nor your readers will be able to tell that the base word and the superscript aren't really next to each other.

The second problem is equally easy to fix: Use a non-breaking space instead of a regular space between the base word and the superscript. The spell checker counts the non-breaking space as a demarcation point between words, so this won't mess up the spell checking.

If you want to semi-automate the add-a-space technique, you could use a macro to place the space between your base word and the superscript. This macro will do the change for you:

Sub SpellCheckSuperscriptedWords()
    With Selection.Find
        .ClearFormatting
        .Text = "([! .,?]{1,})>"
        .Font.Superscript = True
        .Replacement.Text = " @1"
        .MatchWildcards = True
        .Wrap = wdFindContinue
        .Execute Replace:=wdReplaceAll
    End With
    Application.ResetIgnoreAll
    ActiveDocument.SpellingChecked = False
End Sub

The macro looks for all words that have superscripts, provided those superscripts are at the end of the word and don't occur after a punctuation mark. It then places a space and an @ sign just before the superscript and again checks the spelling in the document. You can then look for any spelling errors and correct them in the base words. When done, you can then run this macro, which removes the added space and @ sign:

Sub RemoveSpaceFromSuperscript()
    With Selection.Find
        .ClearFormatting
        .Text = " @"
        .Font.Superscript = True
        .Replacement.Text = ""
        .MatchWildcards = False
        .Wrap = wdFindContinue
        .Execute Replace:=wdReplaceAll
    End With
    ActiveDocument.SpellingChecked = True
End Sub

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 (8241) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021.

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

Always Printing Drawing Objects

Add a bunch of drawing objects to your document, and you may wonder how to make sure they all appear on a printout. How ...

Discover More

Plain Text Pasting as the Default

Pasting 'plain text' into a document is one of the most common ways of pasting information. Wouldn't it be great if this ...

Discover More

Disk Full Error

If you try to save your documents and you get an error indicating that the disk is full, it can be frustrating when you ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Dictionary Shortcut Key

Need a quick way to display the dictionary or other grammar tools? Use one of the handy built-in shortcuts provided by Word.

Discover More

Catching Single-Letter Spelling Errors

There have been times when I've reviewed my writing and found lots of "lone letters," detached by a single space from the ...

Discover More

Setting Spell-Checking Options

Like many things in Word, you can configure the way the spelling checker does its job. If you want to exercise more ...

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 8 + 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.