View Single Post
  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default How to preserve a hyperlink inside a IF field

It might work if the IF field is nested within the Hyperlink field eg Insert
a hyperlink with display text added to the display text window. Then toggle
the hyperlink field and replace the linked location with the IF field thus:

{ HYPERLINK \l "{ IF { REF Test } = 1 "Page3" "Page4" }" }

The above example works within the document to link to bookmarks Page3 or
Page4 according to the setting of the bookmark Test. I see no reason why it
should not link outside the document?
The display text doesn't change when the fields are updated.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Peter Jamieson wrote:
Here, what I see is that you can put a hyperlink field into the
result of an IF field, but when you ctrl-click it within Word the
link doesn't function. Saving, closing and re-opening seems to
preserve the hyperlink field, but it still doesn't work. But maybe
you are seeing something different?

"Sunil Sudhakaran" Sunil wrote
in message ...
Hi,

I have a document that contain many IF fields. If I add a hyperlink
inside a
if field pointing to a bookmark outside IF field then while closing
and reopening the doc (Word 2003) the hyperlink info is lost. Is
there a way to
retain the same?

Thanks and regards
Sunil S.