Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a cross-reference field in my Word document

{ REF bookmark_A \h }

I want to display my custom text, say Default Bookmark A Title, instead of bold Error! Reference source not found when bookmark_A will be improperly broken in future.

Is there a way to do this?

share|improve this question
That's Word's internal error system. You'll have to dig deep to change it. – dnbrv Apr 15 '12 at 5:17
up vote 1 down vote accepted

Yes! Simply wrap the field in an IF field like this:

{ IF { REF bookmark_A \h} = "Error! Reference source not found" "My custom error message" "{ REF bookmark_A \h} }
share|improve this answer
Thank you for the answer. Unfortunately it doesn't work :( I tried { IF { REF bookmark_A \h} = "Error! Reference source not found" "My custom error message" "Bookmark Present" }, and it prints just REF regardless bookmark present or not. – SergeanT Jul 5 '12 at 14:07
It seems that condition { REF bookmark_A \h} = "Error! Reference source not found" is not valid. (I use Word 2003) – SergeanT Jul 5 '12 at 14:10
@Sergant, it works for me on Microsoft Word 2007 (sorry I don't have 2003 to test with). Two things: the error message needs to end in a full stop. The older version of MS Word might require speech marks around the REF field in the conditional (the first part). Lastly I have prepared a template that works on my side, have a look at it and see how it goes: – Adam Jul 6 '12 at 2:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.