Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Inserting a Cross-Reference to the First Style on a Page.

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

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


4

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. For instance, let's suppose your document uses headers or footers that refer to headings appearing on the page. This is frequently done in reference material and is a great help to the reader. You can use the following steps to set up this type of cross-reference.

  1. Set up your header or footer as you want it to appear.
  2. Position the insertion point within the header or footer where you want the paragraph text to appear.
  3. Press Ctrl+F9 to insert field brackets. Make sure the insertion point stays between the brackets.
  4. Type STYLEREF followed by the name of the formatting style used to format the paragraph you want to cross-reference. The formatting style must be enclosed in quotes.
  5. Press F9 to update the field information. Word replaces the field with the text of the last paragraph you formatted with the specified style.

If you set up your header or footer this way, then every time the contents of the referenced paragraph style changes, the contents of the header or footer will change. For instance, let's say that you are using the Heading 2 style in the field. Every time a new paragraph formatted with the Heading 2 style is encountered in your document, the contents of that paragraph are inserted in place of the field in the header or footer.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (3517) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Word here: Inserting a Cross-Reference to the First 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

Understanding the Gutter Margin

Most everyone knows that Word allows you to set top, bottom, left, and right margins for your document. There is another ...

Discover More

Returning a Worksheet Name

Need to know the name of the current worksheet? You can use the CELL function as the basis for finding this information ...

Discover More

Making a Signature Line that Doesn't Disappear

Do you need to add a line to your document that indicates where a signature should be made? If you don't want that line ...

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

Printing a Style Sheet

Styles are a fantastic way to format your documents easily and consistently. At some point you may want to print out a ...

Discover More

Pasted Text Not Formatted as Expected

Copying and pasting information is a common practice in Word. How the program should handle formatting (especially styled ...

Discover More

Preserving Style Formatting when Combining Documents

Insert one document into another and you may not get the results you expect. Here's why, along with what you can do about it.

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 two more than 7?

2023-12-08 21:32:53

Tomek

Just to clarify: the tip says:
Press F9 to update the field information. Word replaces the field with the text of the ***last paragraph*** you formatted with the specified style.

What gets into the header or footer is actually the text of the ***first paragraph*** formatted with the specified Style on the page. If the Style is not used on a particular page, the text is taken from such paragraph on the closest page preceding the page where the header/footer is.


2023-12-05 15:26:09

Wallace

This is fantastic for showing the name of each chapter in the header or footer. Thanks so much, Allen, for this tip and your many other excellent tips!


2022-01-18 10:19:09

Steven Van Steenhuyse

I found the answer toi mny question:

https://answers.microsoft.com/en-us/msoffice/forum/all/field-codes-to-display-both-number-and-text-of/36a75c82-246c-451f-9fa6-65ef1b2d6e55


2022-01-17 10:55:13

Steven Van Steenhuyse

Several of my legal documents include outline numbering tied to heading styles. How can I also include the outline number with the heading title (for instance, instead of just "Legal Authorty" I want the header or footer to show "12-3-8 Legal Authority")?


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.