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: Automatically Adding Tabs in Footnotes.

Automatically Adding Tabs in Footnotes

Written by Allen Wyatt (last updated April 27, 2019)
This tip applies to Word 97, 2000, 2002, and 2003


2

For some formatting purposes, you may have a need for Word to place a tab character in your footnotes, between the actual footnote reference number and the text of the footnote. Word does not allow you to do this automatically, however. In fact, Word doesn't allow you to specify what character should appear between the footnote reference number and footnote text, as you can with numbered lists. Instead, Word places a space between these two elements.

There are several ways you can go about making sure that the footnote includes a tab separator, and the various methods will be described shortly. All of the methods assume, however, that you have the Footnote Text style set up to handle the tab properly.

Whenever you insert a footnote, Word formats the footnote itself so that it uses the built-in Footnote Text style. You can control how the footnote appears by simply making changes to this built-in style. For instance, if you want a tab character between the footnote reference number and the beginning of the footnote text, then you should set a tab stop in the Footnote Text style so that Word knows what to do with the tab character once you get it in the footnote. Exactly how you modify styles has been covered in other issues of WordTips.

The first potential solution to adding the tabs is to use Word's Find and Replace feature. You can make sure that all footnotes have the requisite tab character by following these steps:

  1. Press Ctrl+H. Word displays the Replace tab of the Find and Replace dialog box.
  2. If available, click on the More button. (See Figure 1.)
  3. Figure 1. The Replace tab of the Find and Replace dialog box.

  4. Make sure that the Use Wildcards check box is selected.
  5. In the Find What box, type "(^2) " without the quotes. Note there's a space after the last parenthesis.
  6. With the cursor still in the Find box, click on the Format button, then choose Style. Word displays the Find Style dialog box.
  7. In the list of styles presented, choose the Footnote Text style and click on OK.
  8. In the Replace With box, type "\1^t" without the quotes.
  9. Press Replace All, then close the Find and Replace dialog box.

When done, all of the footnotes will have the requisite tab between the footnote reference number and the beginning of the footnote text. This works because you are using the ^2 wildcard in the search, which searches for footnote or endnote reference marks. The parentheses surrounding the ^2 causes that wildcard to be treated as a group. Essentially, the Find What box will look for all footnote or endnote reference marks followed by a space that are in paragraphs formatted with the Footnote Text style. The only place that this combination occurs is in the footnote itself. Endnotes are in the endnote style, and the main body of the document should not be in the Footnote Text style. In the Replace With box, the character \1 will replace the first expression that is between parentheses in the Find What box. In our case, that is the footnote reference number. The ^t will insert a tab.

Another approach is to use a macro that will place the requisite tab in the desired location in the footnotes. The following macro will do just that:

Sub TabFootnotes()
    For s = 1 To ActiveDocument.Footnotes.Count
        ActiveDocument.Footnotes(s).Range.Select
        With Selection
            .Collapse Direction:=wdCollapseStart
            .MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
            .TypeText Text:=vbTab
        End With
    Next
End Sub

This macro steps through each footnote, selects the footnote text, deletes the space at the beginning of the text, and then types a tab. In reality, the macro does not check to make sure that the character at the beginning of the text is a space; it could just as easily be a tab from a previous invocation of this macro. That is OK, however, as replacing an existing tab with a new tab will work just fine and still give the desired results.

There is a final approach that is appropriate if you want to always make sure there is a tab after the footnote reference number. This approach involves replacing Word's built-in command for inserting footnotes:

Sub InsertFootnote()
    If Selection.StoryType <> wdFootnotesStory Then
        Dim dlg As Dialog
        Set dlg = Dialogs(wdDialogInsertFootnote)
        If dlg.Display = -1 Then
            dlg.Execute
            Selection.TypeBackspace
            Selection.TypeText vbTab
        End If
    End If
End Sub

This macro first checks to make sure that you aren't trying to insert a footnote while in the footnote section of the document. Then it displays the regular Footnote and Endnote dialog box. When you click on OK in the dialog box, the macro inserts a tab and waits for you to type the text of your footnote. This macro will also insert tab characters between endnote references and endnote text.

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 (1691) 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: Automatically Adding Tabs in Footnotes.

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

Too Many Cell Formats

The error message "too many cell formats" can be difficult to fix. This tip describes ways you can attempt to get rid of ...

Discover More

Deriving a Secant and Cosecant

Two rather common trigonometric functions are secants and cosecants. Excel doesn't provide functions to calculate these, ...

Discover More

Printing a Portion of a Worksheet

Need to print a portion of a worksheet, but don't want to waste paper by printing the whole thing? It's easy to print ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (menu)

Inserting and Deleting Footnotes

Footnotes are essential in some types of writing. When you need to add footnotes to your documents, you'll appreciate the ...

Discover More

Adding Footnotes to Endnotes

Word does footnotes. Word does endnotes. Word doesn't do footnotes within endnotes. Here's a discussion as to why and ...

Discover More

Putting Your Index after Your Endnotes

Endnotes are supposed to be at the end of your document, right? Not necessarily. You may want something else at the end, ...

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 4 + 9?

2021-07-03 10:32:40

Sau

Hi Allen

I found this article is useful.

I have more 1000 footnotes in my microsoft word document. What I need is to automatically adding fullstops after all footnotes texts.

Can I use the find and replace dialog box. If yes, please how can I use it.

thanks
Sau,


2019-08-01 10:27:02

g

Thank you! This article gave me ideas so I eventually came up with the following variant:
.Text = "(^2)*([A-z0-9])"
.Replacement.Text = "\1^t\2"
So that it replaces with a tab anything between the footnote number and its text.
That's because sometimes people delete that default space or add more spaces/tabs.


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.