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: Inserting a Cross-Reference to the Last Style on a Page.

Inserting a Cross-Reference to the Last Style on a Page

Written by Allen Wyatt (last updated February 24, 2024)
This tip applies to Word 97, 2000, 2002, and 2003


Word includes a cross-reference feature that allows you to indicate the contents of a paragraph formatted with a specific style. This is done with fields, and is used primarily in headers or footers. As an example, suppose you wanted your header (or footer) to refer to the last heading on a page, as is frequently done in reference material. You can use the following steps to set up this type of cross-reference.

  1. Position the insertion point where you want the cross-reference to appear (such as in a header or footer).
  2. Press Ctrl+F9 to insert field brackets. Make sure the insertion point stays between the brackets.
  3. Type STYLEREF followed by the name of the formatting style used to format the paragraph you want to cross-reference. The name of the formatting style must be enclosed in quotes. Follow this with the \l switch. Thus, if you wanted to cross-reference the heading 4 style, you would use this within the field brackets: styleref "heading 4" \l.
  4. Press F9 to update the field information. Word replaces the field with the text of the last paragraph on the page formatted with the specified style.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1067) 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: Inserting a Cross-Reference to the Last Style on a Page.

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

Saving in a Macro Using a Desired File Name

Need to save a new document, from within a macro, to a specific file name? If you use the Record Macro capabilities of ...

Discover More

Previewing Before You Print

Print Preview is a feature built into Word that allows you to see what your printed output will look like before you ...

Discover More

Determining the Week of the Year

If you are working with dates in a macro, you may need to determine which week of the year a date falls within. This can ...

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 (menu)

Changing Headers and Footers

Editing what is in your page header or footer is fairly easy, and you can use the same editing techniques you already ...

Discover More

Suppressing Headers or Footers

Don't want a header or footer to appear on just a portion of your document? It's easy to do when you understand that ...

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
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 - 5?

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.