Creating a List of Cross-References

Written by Allen Wyatt (last updated February 2, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


2

Guy is a technical editor working on long technical reports. There are LOTS of cross-references. He needs to verify that every figure/table is cross-referenced in the body text. Guy can't seem to find any information about making a list of all cross-references in a document so wonders if there is a way to do it.

There is no way to do this natively within Word, but you could come up with some sort of workaround. For instance, assuming your cross references to figures and tables are automatically numbered by Word, you could place an index entry field (Alt+Shift+X) next to each cross-reference field and then generate an index. That would provide a list of all your cross-references, and you could update the index, as necessary, if you make changes to your cross-references.

Another solution, however, is to use a third-party add-in to handle your cross references. One that is worth checking out is DocTools CrossReferenceManager. It can generate a list of all cross-references, including backlinks to the original document. (It can do more than that, but this specific capability provides a solution to Guy's original query.) More information about the add-in can be found here:

https://wordaddins.com/products/cross-references/

The add-in is not free, but it does come with a 15-day trial period.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (2574) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365.

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

Adding Ordinal Notation to Dates

Want to add an ordinal suffix to a number, as in 2nd, 3rd, or 4th? Excel doesn't provide a way to do it automatically, ...

Discover More

Applying Borders to Tables

Want to change the borders that Word adds to your tables? You have complete control over the way your borders appear, ...

Discover More

Making Bookmarks Bold

Do you want an easy way to see all the bookmarks in your document? Word provides a way to make them visible, or you can ...

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)

Comparing Document Versions

Do you need to compare two versions of a document to each other? Word provides a tool that can make this easy, as ...

Discover More

Ignoring Hyphens in Word Counts

When you instruct Word to tell you how many words are in a document, it treats hyphenated words or phrases as if they are ...

Discover More

Understanding Master and Subdocuments

Most people use Word to create regular documents that you edit, view, and print. The program also allows you to create 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 6 - 0?

2023-10-30 14:33:38

ClancyCat

FWIW, DocTools will *not* work for index x-refs, only for "typical' x-refs inserted into the body text of a Word file, like "see Table 2.x." The developer is very helpful but this is a function whch is NOT included at all. I bought it andtried it and was extremely disappointed to find out ath Indices are a "whole 'nother thang," Unfortuante. I'm still trying to count index x-refs!


2019-07-14 03:20:30

Ken Endacott

Here is a simple way of checking references to tables and figures. The macro below highlights in yellow all figure and table captions that are referenced at least once. By scrolling down the document, captions that are not highlighted and hence haven't been referenced can be seen. The macro also highlights in red, references that do not have a corresponding table or figure caption or bookmark. The macro is non specific and will highlight any referenced bookmark.

Sub CheckTableAndFigureReferences()
Dim j As Long
Dim f As Field
Dim fCode As String
Dim bkMrk As String
ActiveDocument.Range.HighlightColorIndex = wdNoHighlight
For j = 1 To ActiveDocument.Fields.Count
Set f = ActiveDocument.Fields(j)
If f.Type = wdFieldRef Then
fCode = Trim(f.Code)
bkMrk = Trim(Mid(fCode, InStr(fCode, " ")))
If ActiveDocument.Bookmarks.Exists(bkMrk) Then
ActiveDocument.Bookmarks(bkMrk).Range.HighlightColorIndex = wdYellow
Else
f.Result.HighlightColorIndex = wdRed
End If
End If
Next j
MsgBox "Finished checking references"
End Sub


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.