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

Stubborn Highlighting

When you make extensive edits to a document and those edits include changing the formatting of numbered or bulleted ...

Discover More

Pulling Text from a Cell and Placing It in a Shape

Graphic shapes you add to your worksheet can easily contain text; just click on the shape and start typing away. You may ...

Discover More

Disabling Dragging and Dropping

Excel allows you to easily paste information into a worksheet, including through simply dragging and dropping the ...

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)

Stopping Styles from Changing with Multiple Users

Using styles in your documents can be very helpful when it comes to consistency and ease of formatting. When others open ...

Discover More

Turning Off Smart Quotes for Specific Styles

Smart quotes can be helpful in making a great-looking document, but at times, they can be a real pain. Wouldn’t it be ...

Discover More

Renaming a Style

Styles are invaluable when it comes to applying consistent formatting in and across documents. If you need to rename a ...

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?

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.