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

Seeing All Open Workbook Names

Ever want to see a list of all the workbooks that are open? If you open more than nine, Excel only displays the first ...

Discover More

Aligning Cells when Importing from CSV

When you import information from a CSV text file, Excel formats the data according to its default settings. Wouldn't it ...

Discover More

Getting the Name of the Worksheet Into a Cell

Excel allows you to change the names assigned to the worksheets in a workbook. If you want to have those names appear in ...

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)

Insert AutoText Tool Unavailable on Header and Footer Toolbar

When creating headers or footers, you might notice at some time that the "Insert AutoText" tool on the Header and Footer ...

Discover More

Preventing the Left Margin of a Footer from Moving

When you print a document, does the position of the page footer seem to move left and right? This could have to do with ...

Discover More

Missing Header and Footer Toolbar

When you need to make changes to the header or footer of a document, the Header and Footer toolbar is invaluable. What if ...

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 six minus 4?

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.