joemajestee
Programmer
I'm trying to merge links into a directory in Word 2003.
The data is from Excel. The problem I'm having is that I can't seem to get the hyperlinks in the final document to be live. There is sometimes no URL, so there's an IF statement. Finally, the text in the document is always simply "Link".
The excel data is something like this:
What I have currently in the starting document is:
I did use ctrl-F9 to create the {}. I get a blue underlined "Link", but no actual link. The IF part is working, ie. "Link" does not appear at all for records with no link.
The data is from Excel. The problem I'm having is that I can't seem to get the hyperlinks in the final document to be live. There is sometimes no URL, so there's an IF statement. Finally, the text in the document is always simply "Link".
The excel data is something like this:
Code:
ColB
Item1URL
[URL unfurl="true"]http://www.site.com[/URL]
What I have currently in the starting document is:
Code:
{if { MERGEFIELD "Item1URL" }<>"" { HYPERLINK "{ MERGFIELD "Item1URL"}" }}
I did use ctrl-F9 to create the {}. I get a blue underlined "Link", but no actual link. The IF part is working, ie. "Link" does not appear at all for records with no link.