V
Virigl Layne
We're getting a 5852 error mailmerging into a Word 2003
document. The merge is created in Access 2003 using this
code:
Dim appWord as Word.Application
Set appWord = New Word.Application
appWord.Documents.Open gstrTemplatesPath & strFileName
appWord.ActiveDocument.MailMerge.Destination =
wdSendToNewDocument
appWord.ActiveDocument.MailMerge.Execute
The error happens on the line that
ends "wdSendToNewDocument".
Option Explicit is declared in the module. Plus, this
code was working fine in Access and Word versions 97, 2000
and XP.
document. The merge is created in Access 2003 using this
code:
Dim appWord as Word.Application
Set appWord = New Word.Application
appWord.Documents.Open gstrTemplatesPath & strFileName
appWord.ActiveDocument.MailMerge.Destination =
wdSendToNewDocument
appWord.ActiveDocument.MailMerge.Execute
The error happens on the line that
ends "wdSendToNewDocument".
Option Explicit is declared in the module. Plus, this
code was working fine in Access and Word versions 97, 2000
and XP.