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 / March 2005

Tip: Looking for answers? Try searching our database.

mailmerge word.basic in Office 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
IT123456 - 15 Feb 2005 18:05 GMT
using word.basics in previous version of word, the below work

     msword := createoleobject('word.basic');
     try
         MSWord.chdir(dirname);
         MSWord.FileOpen(dirname+lettername );
         msword.mailmergetodoc;
         msword.fileprintsetup(Printer.Printers[Printer.PrinterIndex]);
         MsWord.Fileprint(NumCopies:=Copies);
         MsWord.FileCloseAll(2);

I now get

The Mailmergedocto command is not available because the document is not a
mail merge main document
Doug Robbins - 15 Feb 2005 23:31 GMT
I suggest that you look up the mailmerge item in the VBA help file.  You
will find examples there of how to do it using Visual Basic

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> using word.basics in previous version of word, the below work
>
[quoted text clipped - 11 lines]
> The Mailmergedocto command is not available because the document is not a
> mail merge main document
KZeeh - 08 Mar 2005 19:17 GMT
Did you find a solution to this?  I was told to instantiate Word.Application
instead of word.basic, but I am unsure of the commands.  Please let me know
if you found a way to make this work.  Thank you.

> using word.basics in previous version of word, the below work
>
[quoted text clipped - 11 lines]
> The Mailmergedocto command is not available because the document is not a
> mail merge main document
 
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.