B
bcjc18433
Any one know what this won't work?
I have a .xlsm file that stores the source for my merge.
I connect to it using the "Select Recipients --> Use Existing List"
option on the "Mailings" Ribbon.
Connection works great.
But when I run the code below. I lose the connection to the .xlsm file
after getting "Run-time Error '4198': Command Failed"
ActiveDocument.MailMerge.DataSource.QueryString = "SELECT * FROM C:
\Documents and Settings\brian_summers\Favorites\Links\Account Tools\My
Space Files\Mail Merge Files\All Accounts (Excel 2007).xlsm WHERE
(rep_id = 12345)"
Thanks in advance,
Brian
I have a .xlsm file that stores the source for my merge.
I connect to it using the "Select Recipients --> Use Existing List"
option on the "Mailings" Ribbon.
Connection works great.
But when I run the code below. I lose the connection to the .xlsm file
after getting "Run-time Error '4198': Command Failed"
ActiveDocument.MailMerge.DataSource.QueryString = "SELECT * FROM C:
\Documents and Settings\brian_summers\Favorites\Links\Account Tools\My
Space Files\Mail Merge Files\All Accounts (Excel 2007).xlsm WHERE
(rep_id = 12345)"
Thanks in advance,
Brian