Mailmerge no longer works after converting app to access 2007

E

Eric

converted an access 2003 application to acess 2007 and when trying to perform
a mailmerge using VBA the routine aborts at

With objWord.ActiveDocument.Mailmerge
.Destination = wdSendToNewDocument
.Execute
End With
For some reason it doesn't recognize wdSendToNewDocument any more.

Any help or tips are most appreciated.
 
R

Ralph

Do you have a reference set to Microsoft Word 12.0 Object Library? If not try
adding the following line to your code.

Const wdSendToNewDocument=0
 

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