P
Paul Varner
I have a project that has been using MS Word 9.0 Object Library (Word 2000). Letters are set up in Word and a list created thru the VB program and used to print these letters. This has work fine.
The Problem comes when I updated to Word(Office) 2003. I have updated the program to reference the new MS WOrd 11.0 Object Library. When I try and run I get the following error
Run Time Error '5852
Requested object not available
The debug send me to this statement : wdApp.ActiveDocument.MailMerge.Destination = wdSendToNewDocumen
The program is set up as follows
Dim WithEvents wdApp As Word.Applicatio
Dim WithEvents wdDoc As Word.Documen
Set wdApp = New Word.Applicatio
Set wdDoc = wdApp.Documents.Open(Doc_To_Print, , ReadOnly
wdApp.ActiveDocument.MailMerge.Destination = wdSendToNewDocumen
wdApp.ActiveDocument.MailMerge.Execut
wdDoc.Close wdDoNotSaveChange
Set wdDoc = Nothin
*****
I did have Office 2000 Developer loaded. I do not have Office 2003 Developer
Can anyone point me in the right direction.
Thanks
The Problem comes when I updated to Word(Office) 2003. I have updated the program to reference the new MS WOrd 11.0 Object Library. When I try and run I get the following error
Run Time Error '5852
Requested object not available
The debug send me to this statement : wdApp.ActiveDocument.MailMerge.Destination = wdSendToNewDocumen
The program is set up as follows
Dim WithEvents wdApp As Word.Applicatio
Dim WithEvents wdDoc As Word.Documen
Set wdApp = New Word.Applicatio
Set wdDoc = wdApp.Documents.Open(Doc_To_Print, , ReadOnly
wdApp.ActiveDocument.MailMerge.Destination = wdSendToNewDocumen
wdApp.ActiveDocument.MailMerge.Execut
wdDoc.Close wdDoNotSaveChange
Set wdDoc = Nothin
*****
I did have Office 2000 Developer loaded. I do not have Office 2003 Developer
Can anyone point me in the right direction.
Thanks