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 / Mailmerge and Fax / October 2007

Tip: Looking for answers? Try searching our database.

Programmatically Save Mail Merge Letter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
StephenW - 24 Oct 2007 15:08 GMT
Hi,
Is it possible to save the Active Document as a Mail Merge Form Letter and
then assign a datasource to it?  I want to do this in VB Code.  I've tried
using the ActiveDocument.SaveAs with the FileFormat property set to
wdFormLetters, but when I try to use the ActiveDocument.MailMerge object I
get an error.

Thanks,
Steve
Peter Jamieson - 24 Oct 2007 15:11 GMT
You can use ActiveDocument.Mailmerge.OpenDataSource to connect to a new
datasource (the details can be complicated but for many data source types
you just need the file name). But you also need to take account of

http://support.microsoft.com/kb/825765/en-us

Signature

Peter Jamieson
http://tips.pjmsn.me.uk

> Hi,
> Is it possible to save the Active Document as a Mail Merge Form Letter and
[quoted text clipped - 5 lines]
> Thanks,
> Steve
 
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.