General information
Category:
COM/DCOM and OLE Automation
Brenda,
don't know if this helps at all, but I use the following:
goWord = CREATEOBJECT('Word.Application.8') && Open Microsoft Word
goWord.DOCUMENTS.OPEN(THISFORM.LocalDoc) && Open mailmerge document
goWord.ActiveDocument.MailMerge.MainDocumentType = 0 && Set this property to remove any attached data source
goWord.ActiveDocument.MailMerge.OpenDataSource(THISFORM.MergeFile) && Set data source to MailMrge table on local drive
goWord.ActiveDocument.MailMerge.Execute && Do the mailmerge
All mailmerge documents are stored on the server. Before executing the above code to do the mailmerge, the document and data source are copied to the local drive. The 3rd line of code breaks the link and the 4th line reestablishes the data source.
Gary
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only