Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

How to do a mailmerge wifrom VBA?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rVo - 31 May 2005 13:03 GMT
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
Doug Robbins - 04 Jun 2005 07:35 GMT
Check out the .MailMerge item in the Visual Basic help file.  Type
ActiveDocument.MailMerge and then press F1

Signature

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

> Hi,
>
[quoted text clipped - 17 lines]
>
> Romain
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.