![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | ||
MEDPSD
Newbie
Joined: March 05 2008 Location: United States Status: Offline Points: 32 |
Post Options
Thanks(0)
Quote Reply
Topic: Updated Mailmerge SubroutinePosted: February 12 2014 at 6:25am |
|
|
The new mailmerge subroutine updated by Pete uses a third parameter called DESTINATION. My test is blowing up with a script error at line 10 unexpected text '\'. I'm using the same path as my template and my merge data of \\ourservername\docs$\pdonnelly\mailmerge\newname.docx. What should I be using?
|
||
![]() |
||
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: February 12 2014 at 8:10am |
|
|
Hi Patrick -
The DESTINATION argument is documented in the ATWORDMERGE routine:
Thanks, Pete |
||
![]() |
||
MEDPSD
Newbie
Joined: March 05 2008 Location: United States Status: Offline Points: 32 |
Post Options
Thanks(0)
Quote Reply
Posted: February 12 2014 at 8:22am |
|
|
Thanks Pete. Only issue now is the document is opening and immediately closing. How do I make it stay so I can save it?
|
||
![]() |
||
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: February 12 2014 at 10:27am |
|
|
Hi Patrick -
I'm thinking that if we skip the "Quit" method at the end of the routine, Word should stay open and allow you to save the merged document. Try changing from:
Let me know if this resolves the problem. Thanks, Pete |
||
![]() |
||
MEDPSD
Newbie
Joined: March 05 2008 Location: United States Status: Offline Points: 32 |
Post Options
Thanks(0)
Quote Reply
Posted: February 13 2014 at 4:59am |
|
|
Now it opens Word, the merged document appears and quickly disappears, and Word stays open. It seems Windows 2013 doesn't cooperate.
|
||
![]() |
||
MEDPSD
Newbie
Joined: March 05 2008 Location: United States Status: Offline Points: 32 |
Post Options
Thanks(0)
Quote Reply
Posted: March 13 2014 at 12:52am |
|
|
Mailmerge still fails with Word 2013. Commenting out 'WordApp.Quit' kept Word open, but the document appeared and disappeared quickly. Commenting out'SaveChanges=False' resulted with the document staying on the screen but the merge failed. The merge fields remained as they are on the template i.e. <<DICT NAME>>
|
||
![]() |
||
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: March 14 2014 at 7:11am |
|
|
Hi Patrick -
I found the problem - there is a bug in Word 2013 mail merge that is causing the problem. You need to set the View property of the ActiveWindow to wdPrintView in order to use the MailMerge.OpenDataSource method. The code linked to in the mail-merge tech article has been updated to include this change. Thanks, Pete |
||
![]() |
||
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |