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: Paragraph Numbers in Headers or Footers.

Paragraph Numbers in Headers or Footers

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


Let's say that you have a rather long document—perhaps several hundred pages—and it consists of many numbered paragraphs. In your header or footer you would like to place the paragraph number of the first paragraph on the page.

Word provides a rather easy way you can do this using the STYLEREF field. The way you implement the solution, however, depends on how you have your paragraphs numbered. If you are using Word's numbering capabilities (from Format | Bullets and Numbering), then you should follow these steps if you want to place the paragraph number in the header:

  1. Note the style that has been applied to the numbered paragraphs on the page.
  2. Position the insertion point at the location in the header where you want the paragraph number.
  3. Press Ctrl+F9 to insert a set of field braces.
  4. Type STYLEREF, a space, and the name of the style you noted in step 1.
  5. Type another space and then \n. Your completed field should now look like this, assuming that the style from step 1 is Body Text:
  6.      { STYLEREF Body Text \n }
    
  7. If you want the reference the last paragraph number on the page instead of the first, then add the \l (lowercase L) switch to the end of the field code.
  8. Press Shift+F9 to collapse the field. It should now show the number of the first paragraph on the page.

These steps work because of the \n switch, which limits STYLEREF so that it displays only the paragraph number.

If you use a different numbering scheme for your paragraphs—such as manual numbers or perhaps SEQ fields—then the above approach will not work. Instead, you need to create a character style for your paragraph numbers and then apply it to all the numbers in the document. Then you can follow the above steps, but leave out the \n switch. You'll also change the style name in the field code so that it matches whatever character style you've used. For instance, if your style is NumStyle, you would use the following field code:

{ STYLEREF NumStyle }

Provided that NumStyle is a character style, applied only to your paragraph numbers, then when you collapse the STYLEREF field, it shows only the characters you've formatted with the style (your paragraph numbers).

It is interesting that the Word documentation indicates that the STYLEREF field works only with paragraph styles, giving the impression that it won't work with character styles. Testing has shown that this is misleading; STYLEREF will work just fine with character styles as described here.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (230) 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: Paragraph Numbers in Headers or Footers.

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

Storing Sorting Criteria

Need to do the same sorting operation over and over again? Excel doesn't provide a way to save your sorting criteria, but ...

Discover More

Counting Internal Links

Word allows you to easily add hyperlinks to your documents. These links can be to either a bookmark within your document ...

Discover More

Lost Data in Word

Use Word long enough and you eventually will lose some of your work. (And, it seems to be a rule that this will occur ...

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)

Using Last-page Headers and Footers

Headers and footers add a nice touch to your documents, particularly if they are printed. You may want Word to use a ...

Discover More

Deleting a Header or Footer

When working with existing documents, you may need to delete a header or footer previously created. Here's how you can do ...

Discover More

Floating Footer

Need some specific text to appear just below the end of the text on the last page of your document? You can accomplish ...

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 one less than 9?

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