How to Update a Word Table of Contents Across Multiple Documents
Question details
The user needs to update a master Table of Contents that references headings across several separate Word documents, particularly after the referenced files have been renamed or moved.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Managing a large report or book split into multiple sub-documents, requiring a unified Table of Contents in a master file.
- Observed behavior
- The Table of Contents fails to update, breaks, or cannot locate the linked headings because the file paths or names in the RD fields have changed.
Ensure all your referenced sub-documents are saved in their final folder locations, as changing file paths later will break the references and require updating the field codes again.
Edit and Update the RD (Referenced Document) Fields
Update the hidden file paths within the RD fields to successfully reconnect your master document to its corresponding sub-documents.
When you compile a Table of Contents across multiple documents, Word uses RD (Referenced Document) fields. If the linked documents are renamed or moved, the paths inside these RD fields must be manually corrected before the Table of Contents can be updated.
Open your master document and press Alt + F9 (or Option + F9 on Mac) to display the field codes. This will reveal the hidden RD fields that link to your other documents.
Locate the RD fields (which look something like { RD "C:\\Folder\\Document.docx" }) and carefully edit the text to reflect the new document names or current folder paths.
Once the paths are corrected, press Alt + F9 again to hide the field codes and return to the standard document view.
Right-click anywhere inside your Table of Contents, select 'Update Field', and then choose 'Update entire table'. The TOC will rebuild itself using the headings from the reconnected documents.

Create and Manage Complex Documents with WPS Writer
WPS Writer offers robust reference tools for generating complex Tables of Contents and structuring multi-chapter documents. It is fully equipped to handle standard document fields with an intuitive, user-friendly interface.
- 1. Open your document: Launch WPS Writer and open the master document where you want to build your index or Table of Contents.
- 2. Navigate to the References tab: Click on the 'References' tab located on the top ribbon menu to access document structuring tools.
- 3. Insert the Table of Contents: Click 'Table of Contents' and select from the built-in styles or choose 'Insert Table of Contents' to customize your heading levels.
- 4. Keep it updated: Whenever you make changes to your headings, simply click 'Update TOC' in the References tab to refresh the page numbers and structure.

Frequently Asked Questions
What is an RD field in a document?
An RD (Referenced Document) field is a hidden code used to instruct the software to include headings or index entries from external files when generating a master Table of Contents.
Why does my Table of Contents show an error after moving my files?
This occurs because the RD fields still contain the old, hardcoded file paths. You must reveal the field codes (Alt + F9) and edit them to reflect the new folder location or file names.
How do I view the hidden field codes to fix my document links?
You can toggle the display of all field codes in your document by pressing Alt + F9 on Windows (or Option + F9 on a Mac). Pressing the shortcut again hides them.
Can I link documents without using exact folder paths?
Yes. By removing the drive letter and specific folder tree (e.g., using just the file name like 'File.docx'), you create a relative path. This requires the master file and sub-documents to remain in the same folder.




