Mail merge data source problem

R

Raj

Hi,

I have a word document mailmerged with an excel table as a data
source. In the Document.open event of the word document is a macro
that opens the document and sends the merged letters to a new document
(for later printing). Everything works fine, except that when the
workbook with the document.open macro is opened, it warns the user
about running the sql command. I want to say "Yes" to this in the code
so that the mail merge is seamless. How do I say "Yes" to the command
in VBA code?

Thanks in advance for the help

Regards,
Raj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top