Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Variable Hyperlink in Mail Merge in Word 2013

I'm trying to add a hyperlink to a mail merge field. So something like this:

{HYPERLINK "{MERGEFIELD "Links" }"}

So I create a field like this.

{ MERGEFIELD Links }

And the above works (it displays different links for different recipients).

However, when I go to Edit Field, and then attempt to add HYPERLINK to { MERGEFIELD Links}, Word will not allow me. Meaning that when I type HYPERLINK followed by a space, the "variable" field is gone. Instead of word displaying...

LINK

it displays...

   {HYPERLINK "{MERGEFIELD "Links" }"}

even after I press "update field". So Word is not letting me enter HYPERLINK for some reason.

How do I solve this?

like image 827
01jayss Avatar asked Jul 02 '13 14:07

01jayss


People also ask

Can you include hyperlinks in a mail merge?

Once the links are personalized for each recipient, you can send your mail merge with YAMM. Each recipient receives an email with a personalized link. If you don't want your links to appear as links but want to link text instead, you can create clickable text links.

How do I make a hyperlink clickable in Word?

Select the text or picture that you want to display as a hyperlink. Press Ctrl+K. You can also right-click the text or picture and click Link on the shortcut menu. In the Insert Hyperlink box, type or paste your link in the Address box.


2 Answers

I also have been struggling with this. What I found to be the key is creating the document from SCRATCH and not saving it before executing the mail merge. Here are the steps I used:

  1. open a new document and click on the step by step mail merge wizard; add your generic text.
  2. To add the variable hyperlink go to insert>quick parts>fields
  3. select hyperlink on the left and click okay
  4. Use alt + F9 to see the hyperlink field code
  5. Type “” and between them insert your merged field so that {HYPERLINK \* MERGEFORMAT} -> becomes {HYPERLINK"{MERGEFIELD"Constructed_URL"}"\*MERGEFORMAT}
  6. Press ALT+F9 to hide the field code
  7. Click in the text "Error! Hyperlink reference not valid" and replace with something generic like click here.
  8. Complete the mail merge BEFORE you save the document.

Hope this helps and good luck!

like image 153
user1867326 Avatar answered Oct 21 '22 19:10

user1867326


Start with the process here: http://support.microsoft.com/kb/912679 However, like user1867326 indicated, the hyperlink (which should be variable with the mail merge) is converted into a static link when the Word file is reopened.

A solution that seems to work is adding a bookmark within the hyperlink field code immediatly after the mergefield. { HYPERLINK { MERGEFIELD "Link" } \* MERGEFORMAT } Click between the } and \ and go to INSERT > Bookmark, give it a name, and this seems to prevent Word from replacing the mergefield with a static hyperlink.

This answer is adapted and hopefully clarified from the clever solution described here: Mailmerge dynamic hyperlink fields lost after save/reload of document - Word 2010

like image 36
LeniusC Avatar answered Oct 21 '22 20:10

LeniusC