Updating cross references in word 2016
NOTE: You must be using automated caption numbering, Word’s heading styles (mostly), and automated cross-references (x-refs) for these steps to work.
If you have a document with several sections and automated table/figure captions and x-refs to these, you might wonder how you can update these numbers etc.
If you already know all that, you can jump immediately to the section that interests you.
You probably know in general what a cross-reference is.
Sometimes these elements update as part of the steps above, but not always.
See the links below, the menus above or the Search field to the left.
If you insert such cross-references as ordinary text, you will have to update them manually if pagination changes or Chapter 5 becomes Chapter 6 or you change the heading Further Developments to Later Developments.
If it can be updated by pressing , I want it updated.
(In theory updating fields can cause other fields to need updating, e.g.
Fields ' If the field is a cross-ref, do something to it. Type = wd Field Ref Then 'Make sure the code of the field is visible. Move Start Until "R" 'Type 'PAGE' to turn 'REF' into 'PAGEREF'.
You could also just toggle this manually before running the macro. Show Codes = True 'I hate using Selection here, but it's probably the most straightforward way to do this. This turns a text reference into a page number reference. Type Text "PAGE" 'Update the field so the change is reflected in the document.