Need to Load a Doc, Mail Merge and Print from VB6

K

Keith

Hi,

I have set up a mail merge document in MS Word I'll call MyTemplate.doc I
run Mail Merge to merge with a text file called MyData.txt.

I'm using VB to generate a new MyData.txt file. Has anyone ever written
code that will load MyTemplate.doc, instruct MyTemplate to mail merge into a
new document, then print and save the new document and exit the new document
and MyTemplate?

Also, I may have to set some of the printer settings before I print it.


Thanks,

Keith
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?S2VpdGg=?=,
I have set up a mail merge document in MS Word I'll call MyTemplate.doc I
run Mail Merge to merge with a text file called MyData.txt.

I'm using VB to generate a new MyData.txt file. Has anyone ever written
code that will load MyTemplate.doc, instruct MyTemplate to mail merge into a
new document, then print and save the new document and exit the new document
and MyTemplate?
Similar, anyway.

If what you're really asking is, how do you code it, try recording exactly
these actions in a Word macro. that will give you the basic syntax.

If you need help refining it, please tell us the version of Word involved and
how you want to refine it.
Also, I may have to set some of the printer settings before I print it.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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