Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
StephenW StephenW is offline
external usenet poster
 
Posts: 7
Default Programmatically Save Mail Merge Letter

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
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Programmatically Save Mail Merge Letter

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

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

"StephenW" wrote in message
news
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


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save As -- Programmatically Rodger Mailmerge 2 June 2nd 07 04:45 PM
Mail Merge Templates from Multiple Templates Programmatically BP Mailmerge 1 April 7th 06 02:50 PM
How do I save a mail merge form letter to separate files? MTD Mailmerge 2 June 24th 05 05:07 AM
Programmatically merge into a merge document Chris Hlusak Mailmerge 1 March 1st 05 11:58 PM
How can I after a mail merge save each letter individually in a d. Rebecca Mailmerge 2 January 20th 05 04:05 PM


All times are GMT +1. The time now is 12:07 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"