How to do a mailmerge wifrom VBA?

R

rVo

Hi,

I recorded a macro fdoing a mailmerge and tried to cusomize it so I could
use the code for different files.
The data file is a txt file with no headers and uses ";" as seperator.

When I look at the application.mailinglabel.createnewdocument instruction I
see that thez address paameter contains the data from ther first record.

I intend to use different datafiles to merge with a standard document,
should I add headers to the datafiles or is there another approach?

I checked out "word.mvps.org" which contains a lot of info on mailmerging,
but none about mailmerging in VBA.

Can someone put me back on track please.

Thanks,

Romain
 
D

Doug Robbins

Check out the .MailMerge item in the Visual Basic help file. Type
ActiveDocument.MailMerge and then press F1

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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