Insert and Manage Dynamic Cross-Reference Fields in Microsoft Word
by Avantix Learning Team | Updated October 9, 2021
Applies to: Microsoft®Word®2010, 2013, 2016, 2019 or 365 (Windows)
In Microsoft Word, you can insert a cross-reference to content in another part of your Word document and then update it if the target of the cross-reference changes. A cross-reference can refer to a heading, bookmark, the caption of a table or figure as well as other target items. Since a cross-reference is a field, it can be updated and formatted manually, using styles or using switches in the field.
Recommended article: How to Keep Text Together in Microsoft Word (Paragraphs, Lines or Words)
The information inserted by a cross-reference field can be text, a page number, a section number, a paragraph number, a caption number, a caption label or a combination of items. The cross-reference field is a code so it can also include special information in the code (called a switch) that make the field act or appear in a specific way. For example, a cross-reference field may act as a hyperlink so you can jump directly to the target of the cross-reference by Ctrl-clicking the field.
It's easiest to create cross-references to built-in heading styles but they can also be used with bookmarks, footnotes or endnotes.
For example, you could insert a cross-reference to a built-in heading style as follows:
See Section 4: About Our Services on page 5.
In this case, the cross-reference refers to a style's paragraph number, paragraph text and a page number so you would need to insert three separate cross-references and type some of the text (like the word See) as well as appropriate spacing.
Inserting a cross-reference to a built-in heading
It's common to create a cross-reference to a built-in heading in Microsoft Word.
To insert a cross-reference to a built-in heading in the current document:
- Position the cursor where you want to insert your cross-reference.
- Type text that you want to precede the cross-reference (such as See) and any necessary spacing.
- Click the References tab in the Ribbon.
- In the Captions group, click Cross-reference. A dialog box appears.
- In the Reference type drop-down menu, select Heading.
- In the Reference to drop-down menu, select Heading text, Page number, Heading number, Heading number (no content) or Heading number (full content).
- In the For which heading list, click the item you want to reference.
- Ensure Insert as hyperlink is selected If you want to be able to Ctrl-click the cross-reference to jump to the referenced item.
- Click Insert. Word inserts an invisible bookmark to the target.
- Repeat for other items you want to include in the cross-reference. The dialog box can remain open.
- Click Close.
In the following example, note that Heading has been selected as the Reference type in the Cross-reference dialog box:
In the Cross-reference dialog box, theSeparate numbers withandInclude above/belowcheck boxes are enabled under some conditions.
All paragraphs that are formatted with one of the built-in heading styles(Heading 1-9)are automatically shown in the dialog box. Although you can use outline levels, it's best to use the built-in heading styles (these appear in the Home tab in the Ribbon in the Styles group and in other areas in Word).
Inserting a cross-reference to a bookmark
You can also insert a bookmark and then insert a cross-reference to the bookmark.
To insert a cross-reference to a bookmark in the current document:
- Position the cursor where you want to insert a bookmark.
- Click the Insert tab in the Ribbon.
- Click Bookmark in the Links group. A dialog box appears.
- Type a name for the bookmark without spaces.
- Click Add.
- Click where you want to insert the cross-reference to the bookmark.
- Type text that you want to precede the cross-reference (such as See) and any necessary spacing.
- Click the References tab in the Ribbon.
- In the Captions group, click Cross-reference. A dialog box appears.
- In the Reference type drop-down menu, select Bookmark.
- In the Reference to drop-down menu, select Bookmark text, Page number or one of the other options as required.
- In the For which heading list, click the item you want to reference.
- Ensure Insert as hyperlink is selected If you want to be able to Ctrl-click the cross-reference to jump to the referenced item.
- Click Insert.
- Repeat for other items you want to include in the cross-reference. The dialog box can remain open.
- Click Close.
The following is an example of a bookmark created in the Bookmark dialog box:
Inserting a cross-reference to a table or figure
You can cross-reference tables and figures in Word if you have inserted captions using Insert Caption on the References tab in the Ribbon.
To insert a cross-reference to a table or figure in the current document:
- Click where you want to insert the cross-reference to the table or figure (which has already been captioned).
- Type text that you want to precede the cross-reference (such as See) and any necessary spacing.
- Click the References tab in the Ribbon.
- In the Captions group, click Cross-reference. A dialog box appears.
- In the Reference type drop-down menu, select Table or Figure.
- In the Reference to drop-down menu, select the required option – Entire caption (which includes the figure caption or table title with the label and number), Only label and number (such as Table 10), Only caption text (which includes the figure caption or table title without the label and number), Page number or Above/below (which inserts the word above or below with no additional text related to the table or figure).
- In the For which heading list, click the table or figure you want to reference.
- Ensure Insert as hyperlink is selected If you want to be able to Ctrl-click the cross-reference to jump to the referenced item.
- Click Insert.
- Repeat for other items you want to include in the cross-reference. The dialog box can remain open.
- Click Close.
In the following example, note that Table has been selected as the Reference type in the Cross-reference dialog box:
Showing or hiding field codes
Cross-references are fields. Normally, the result of a field is displayed but you can also view the field codes.
To show or hide all field codes in your document, press Alt + F9.
The following is an example of a field code:
{ REF _Ref46507086 \h }
Understanding cross-reference field codes
When you insert a cross-reference, a field code will be inserted based on what the reference refers to.
There arethree types of cross-reference fieldsin Word – PAGEREF, NOTEREF and REF. The first part of the field code of a cross-reference field indicates which type of field it is.
A cross-reference field that refers to the page on which the target is found is a PAGEREF type. When you select Page number as the Reference to insert in the Cross-referencedialog box, the inserted cross-reference field will be PAGEREF.
A cross-reference field with a footnote or an endnote as the target will be the NOTEREF type.
All other cross-reference fields will be the REF type.
Part of the field code inside a cross-reference field refers to a bookmark that points to the target. Abookmarkin Word is a named location or a named block of text or other content in a document.
If you refer to a built-in heading style in a cross-reference, Word automatically adds a bookmark around the heading text at the beginning and the end (excluding the paragraph mark) if a bookmark is not already found. The name of the bookmark is included in the field code of the cross-reference field. Bookmarks that are automatically added are named_Reffollowed by eight or nine digits.
If you are inserting across-reference to a caption, a bookmark will also be added to enclose the part of the caption content to be displayed by the cross-reference field. The bookmark will include different parts of the caption depending on the kind of caption reference you select (such as the entire caption or only the label and number).
The following is an example of a cross-reference for a REF field:
{ REF _Ref449977221 \p \h \d"."\* CHARFORMAT }
The syntax for REF fields is:
{ REF Bookmark [\* Format Switch ] [Switches ] }
Switches are optional.
The underscore at the start of the bookmark name means that the bookmark is being treated as ahidden bookmarkin Word. You cannot add hidden bookmarks manually.
Hidden bookmarks are invisible in the document even if you turn on display of bookmarks. You can view invisible bookmarks in theBookmarksdialog box, but you must turn onHidden bookmarksto display them.
Formatting cross-references
Cross-references can be formatted manually, using styles or using switches in the field code. A switch holds special information that causes the field to act or appear in a specific way.
One easy way to format a cross-reference is by using a character style such as Emphasis or Intense Emphasis.
To apply the Emphasis, Intense Emphasis or Intense Reference character style to a cross-reference:
- Select the cross-reference as well as any surrounding text that refers to it.
- Click the Home tab in the Ribbon.
- Click the More down arrow in the Style gallery in the Styles group.
- Click Emphasis, Intense Emphasis or Intense Reference.
The benefit of this method is that you can later modify the style or find and replace the style with a different style.
In a future article, we'll take a look at more advanced formatting techniques for cross-references.
Updating cross-references
If a document has been edited, you will likely need to update the cross-references since cross-references do not update automatically.
It is important that the markers that are added at the beginning and end of the target of a cross-reference are not deleted or moved during editing. If they are, you will need to reinsert the cross-reference because you will receive an error when you update.
You can update cross-references manually by pressing Ctrl + A to select all and then pressingF9.
Cross-references will also be updated when you switch toPrint Previewor when you print (if the Word option Update fields before printingis turnedon).
To ensure that fields are updated before printing:
- Click the File tab in the Ribbon.
- Click Options.
- Select Display in the categories on the left.
- In Printing options, select Update fields before printing.
- Click OK.
Be sure to check after update to see if there are any errors in your cross-references.
Subscribe to get more articles like this one
Did you find this article helpful? If you would like to receivenew articles, join our email list.
More resources
14 Timesaving Microsoft Word Selection Shortcuts
How to Update All Figure Numbers in Microsoft Word
How to Insert the Not Equal Sign in Word (5 Ways to Type or Insert ≠)
How to Keep Text Together in Microsoft Word (Paragraphs, Lines or Words)
How to Create a Table of Contents in Word (Insert, Format and Update a TOC)
Related courses
Microsoft Word: Intermediate / Advanced
Microsoft Excel: Intermediate / Advanced
Microsoft PowerPoint: Intermediate / Advanced
Microsoft Word: Long Documents Master Class
Microsoft Word: Styles, Templates and Tables of Contents
Microsoft Word: Designing Dynamic Word Documents Using Fields
VIEW MORE COURSES >
Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 18 King Street East, Suite 1400, Toronto, Ontario, Canada (some in-person classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at info@avantixlearning.ca if you'd like to arrange custom instructor-led virtual classroom or onsite training on a date that's convenient for you.
Copyright 2023 Avantix® Learning
Microsoft, the Microsoft logo,Microsoft Office and related Microsoft applicationsand logosare registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.
Avantix Learning |18 King Street East, Suite 1400, Toronto, Ontario, Canada M5C 1C4 | Contact us at info@avantixlearning.ca
FAQs
What is the fastest way to update cross-references in Word? ›
Update a cross-reference
Press Ctrl-A to select all paragraphs. Press F9 to update all cross-references. (This will also update other fields in your document, such as the table of contents.)
Instead of searching and replacing all the figure numbers in the text, click "Edit" -> "Select All" (or, Ctrl + A), which select the entire document, then, press "F9". This updates all the figure number automatically.
Why are my cross-references not updating in Word? ›Cause. This problem occurs because, when you create a cross-reference link, a hidden bookmark is created at the beginning of the heading. When you split the heading, the bookmark does not move.
How do I Format all cross-references in Word? ›Click where you want to insert the cross-reference to the table or figure (which has already been captioned). Type text that you want to precede the cross-reference (such as See) and any necessary spacing. Click the References tab in the Ribbon. In the Captions group, click Cross-reference.
How do you insert a reference Format in Word? ›Add a new citation and source to a document
On the References tab, in the Citations & Bibliography group, click the arrow next to Style and click the style that you want to use for the citation and source.
Update all fields in a document
Press F9. If your document has tables with fields or formulas, you might need to select each table separately and press F9. Tip: To make sure that you don't forget to update your table of contents before you print the document, set Word to update fields automatically before printing.
- Click on the 'Office' button.
- Click on Word Options.
- Select the Advanced tab on the left-hand side.
- Check the option 'update automatic links on open' under the General section on the right-hand side.
- Click on Ok.
Click References > Update Table. Note: Update Table becomes an option only when you click the table of figures in your document. You can also press F9 to update your table of figures. Select an Update in the in the Update Table of Figures dialog box.
How do you fix a cross-reference error? ›There's also a case that when you create cross-reference on a file, and you paste this cross-reference to a new file, you got the Error! Reference source not found. The solution is copy the heading which you cross-reference in the old file (so the bookmarks is copy also) and paste it to the new file.
How do I fix reference error in Word? ›An error message appears instead of text
Reference source not found.” when you update a field that has a broken link to a bookmark. You can restore the original text by pressing Ctrl+Z immediately after receiving the error message. You can press Ctrl+Shift+F9 to convert the text in the field to regular text.
Why can't I update fields in Word? ›
The fact that the Update Field command is greyed out suggests that fields have been locked. You can select all document content and then press Ctrl+Shift+F11 (on some keyboards, you have to click Ctrl+Shift+FN+F11). The shortcut runs the UnlockFields command. Was this reply helpful?
How do you update cross-references in footnotes? ›In order to update the cross-references, place your cursor in a footnote and select the text of all footnotes by pressing Ctrl – A. Once the footnote text is selected, press F9.
How do I update all cross-reference fields in Word for Mac? ›In a document you have open, right-click a field, such as a table of contents, a page number, or a cross-reference, and click Update Field.
How do you Format a cross-reference bold in Word? ›Click Format. Select Font. Select Bold in the middle panel at the top of the Font dialog box. If your cursor was in the Replace field, then immediately below that field Font: Bold displays.