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)
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)