autonew mailmerge error

R

Ridge Kennedy

Dear All,

Working with Word 2003 on XP workstaions, I have a template that is being
launched from a database application that uses an autonew macro. I want it
to create a new document and do a mailmerge automatically.

When I manually run the "RunMerge" sub that I created (after the autonew
macro has completed and a new "Document 1" with the merge fields on it is on
the screen, the merge completes successfully.

However, if I include the code for the mailmerge in my autonew macro, it
always fails. In the many permutations I've tried, I most frequently get an
error message that says that the object or property doesn't exist, even
though I've also produced an error that suggested the new document wasn't an
acceptable main merge document.

I've set a reference to the MSWORD.olb and provided a fully qualified name
for the code.

Is this a known problem of some sort? Any thoughts about other good places
to look?

Thnaks,

Ridge (in New Joisey)
 

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