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

Using the Organizer to Manage Styles

One of the things that the Organizer is great at doing is managing styles. You can use it to move them between templates ...

Discover More

Automatically Sorting as You Enter Information

When entering information into a worksheet, you may want it to always be in a correctly sorted order. Excel allows you to ...

Discover More

Setting Table Values to Three Decimal Places

If you import information into a document from another program, the values you import may not be exactly to your liking. ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Intelligently Starting a New Paragraph

When using styles in a document, you can increase your productivity by letting Word know what paragraph style you expect ...

Discover More

Changing the Style Gallery

The style gallery appears on the Home tab of the ribbon. You may want to modify how Word displays styles within the ...

Discover More

Printing a List of Custom Styles

You can add any number of styles to your document in order to define how you want your text to appear. If you later want ...

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 2 + 2?

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.