I am trying to access the MailMerge object to merge a document.
I've tried the following and it does not work...
Set objWord = GetObject("c:\full.doc", "Word.Document")
objWord.Application.Visible = True
objWord.MailMerge.OpenDataSource("c:\temp\condata.txt")
I've tried this method on a few machine and I get varying results... One
machine says it can't find the Installable ISAM driver for the TXT
conversion... Another machine gives and ODBC error and says it Data source
name not found and no default driver specified. On my preview ver. of
Office 2000, however, it DOES work, and the document merges properly. I
can't figure out why this doesn't work with Word 97.
My other method was to try and open it like this...
Set objWord = CreateObject("Word.Application")
objWord.Documents.Open "C:\full.doc"
objWord.Application.Visible = True
objWord.Document.MailMerge.OpenDataSource("c:\temp\condata.txt")
This doesn't even work at all... So basically I'm looking for the correct
way to use the .MailMerge object... Does anyone know of a way that works
with Word 97??
Can you do a mail merge through the GUI in Word with a text file? If not,
then the problem is in Word's configuration. You may need to rerun setup and
add drivers.
--
Sue Mosher
Author of "The Microsoft Outlook E-mail and Fax Guide"
Exchange and Outlook FAQs at http://www.slipstick.com/exchange/
Rick Garlick <rick.g...@rebis.com> wrote in message
news:edN0RBHq#GA....@cppssbbsa02.microsoft.com...
Sue Mosher [MVP] <sue...@slipstick.com> wrote in message
news:#9FynaQq#GA...@cppssbbsa02.microsoft.com...