Mail Merger Error 5852 in Word 2003

V

Virgil 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.
 
B

Beth Melton

Hi Virgil,

It sounds like the mail merge document has been changed to a Normal
Word document instead of a mail merge document.

Open the document and turn on the Mail Merge toolbar. Click "Main
document setup" (first button) and check the document type. You may
also need to specify the data source again as well.

--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top