Home |
Search |
Today's Posts |
#1
|
|||
|
|||
mailmerge word.basic in Office 2003
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 |
#2
|
|||
|
|||
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 -- 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 "IT123456" wrote in message ... 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 |
#3
|
|||
|
|||
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. "IT123456" wrote: 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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
After upgrade from office 2000 to office 2003 Graphic Appears as . | Microsoft Word Help | |||
Is Office 2003 word documents compatible with office 97? | Microsoft Word Help | |||
Microsoft Office Word 2003 | Microsoft Word Help | |||
How do I downgrade files from Office 2003 to Office 97 without in. | Microsoft Word Help | |||
MS Office 2003 Word Document Icons | Microsoft Word Help |