MS Word: Mailmerge hyperlinks with query get URL string with a MERGEFIELD

拟墨画扇 提交于 2019-12-12 05:03:24

问题


I'm trying to send an email merging one document (.docx) with a contacts database (via OleDB). Using MS Word 2007, it seems easy (it works for easy things: name, address, ...) but I can't find how fill an query-get URLD string with a merge field inside an hyperlink.

An hyperlink like: Click here

  • where here is an hyperlink to http://domain.com/test.php?contact=contact@contactdomain.com
    • where contact@contactdomain.com is the address of the contact, a merge field.

I've tried the special/merge fields:

{HYPERLINK "http://domain.com/test.php?contact={MERGEFIELD contactEmail}" \o "Here"}

but it doesn't work, sometimes it merge only the first record and then send all the mails with the same address, I got this alternating the view with ALT+F9.

This support doc doesn't work for me because I don't have the complete URL in my database for each contact, and I can't change the design of the table or add a view (it's from the CRM), I don't like to do it exporting the table and adding the field.

Any idea?

Thanks in advance,


回答1:


OK, I think that MS forgot something in MSWord. In MS Publisher 2007 exists this functionality (called "Personalized hyperlinks") See at here to begin the mailmerge, then you can find an option to do that with an extra form (I didn't find in Word). I don't know if Word2010 has this option, but Publisher 2007 is OK for me.

Thx.



来源:https://stackoverflow.com/questions/2765654/ms-word-mailmerge-hyperlinks-with-query-get-url-string-with-a-mergefield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!