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

Inserting Video into Worksheets

You can add all sorts of objects to your workbooks, including video clips. Here's the pros and cons (along with the ...

Discover More

Moving Part of a Footer Down a Line

Setting up a single footer line for your printouts is fairly easy. If you want to move part of the footer down a line so ...

Discover More

Copying Worksheets in a Macro

Copying worksheets (one or many) is easy to do manually. What is not well known is that it is even easy to make the ...

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

Putting Style Names Next to Paragraphs on a Printout

If you use styles to format your document, you might want a way to print the document and show, to the left of each ...

Discover More

Automatically Updating Styles

When you add formatting to some text in your document, Word may apply your formatting to every other part of your ...

Discover More

Changing the Language for All Styles

Styles are very powerful, and can really help when it comes to formatting your documents. If you are working with ...

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 five less than 6?

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.