View Single Post
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] macoovacany@hotmail.com is offline
external usenet poster
 
Posts: 1
Default Checking to see if a field reference or bookmark exists.

Hello,
We have a word document that we use as a template. Pretty much all
the sentences in the document are autonumbered. At the end of the
document we have a summary section, as indicated below:

[{Autonumber 2.1}]* Some text
.....
.....
{Autonumber 3} b Summary /b
{Autonumber 3.5} ... as per {2.1}

[]* Word automatically bookmarks as a hidden bookmark, e.g."
_Ref158707320".

However, sometimes certain sentences are not required, so we delete
them. This results in:
{Autonumber 3.5} ... as per {Error! Bookmark not found}.

Is there any way to conditionally check for the existence of the
bookmark? I'm thinking of something along the lines of:
{Autonumber 3.5} ... {if exist{_Ref158707320} then concatenate "as per
", & {_Ref158707320} else "None"}


Cheers,
Tim