How to Fix: Display custom text instead of "Error! Reference source not found" in word cross-reference field when reference is broken
How to customize error message in Word cross-reference field
📋 Table of Contents
The error 'Error! Reference source not found' in Word's cross-reference field can be frustrating when a reference is broken. This issue affects users who rely on accurate cross-references for their documents.
This problem occurs because the bookmark is not properly linked to the correct source. As a result, when the bookmark is improperly broken, the cross-reference field displays an error message.
🛑 Root Causes of the Error
- The primary cause of this issue is that the bookmark is not correctly linked to the reference source. This can happen if the bookmark is created incorrectly or if the reference source is missing or incorrect.
- An alternative reason for this issue could be that the document contains conflicting bookmarks or references, which can cause the cross-reference field to display an error message.
🚀 How to Resolve This Issue
Display Custom Text in Cross-Reference Field
- Step 1: To fix this issue, you will need to modify the cross-reference field to display custom text instead of the default error message.
- Step 2: Open your Word document and navigate to the cross-reference field that is displaying the error message.
- Step 3: Click on the 'Format' tab in the ribbon and select 'Custom Text' from the drop-down menu.
- Step 4: In the Custom Text dialog box, enter your desired custom text in the 'Text' field.
- Step 5: Select the bookmark you want to link to the cross-reference field by clicking on it in the list of available bookmarks.
- Step 6: Click 'OK' to save the changes and apply them to the document.
Alternative Fix Method
- Step 1: As an alternative fix, you can also use VBA macros to modify the cross-reference field's behavior.
- Step 2: Open the Visual Basic Editor in Word by pressing Alt + F11 or navigating to Developer > Visual Basic in the ribbon.
- Step 3: In the Visual Basic Editor, insert a new module by clicking 'Insert' > 'Module' and paste the following code: `Sub ModifyCrossReferenceText() Dim rng As Range Set rng = Selection.Range If rng.Bookmarks.Count > 0 Then For Each bookmark In rng.Bookmarks If bookmark.Name =
✨ Wrapping Up
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Stuck in tutorial hell after 4 years: How do I b
Fix Stuck in tutorial hell after 4 years: How do I bui. Practice build
How to Fix: Trying to sync mutliple audio tracks to a movie
Fix Trying to sync mutliple audio tracks to a movie bu. Consider using
How to Fix: Failed to merge latest branches from upstream re
Fix Failed to merge latest branches from upstream repo. Try running 'g