"User-Defined type-not defined" When using Word in Access

b_karv

Registered User.
Local time
Today, 13:22
Joined
Sep 15, 2004
Messages
31
Hi I am trying to do a mail merge.... I have the proper code to do it. However when I compile VB stops at the first line which is:

Dim objWord As New Word.Application

And gives the error message "User-Defined type-not defined" .

I am pretty sure it is to do with my reference library. At the moment I have the following ticked:
* Visual Basics for Applications
*Microsoft Access 9.0 Object Library
* OLE automation
* Microsoft ActiveX Data Objects 2.7 library
* Microsoft DAO 3.6 Object Library
Further more I am using Microsoft Office 2000 and using WInXP

Hope I have provided enough info and thanks in advance

Regards
Karvan
 
No unfortunately it doesn't. Still get the same problem. Ahh it is driving me insane
 
Thanks mate, I can't believe i didn't see that library....much appreciated
 

Users who are viewing this thread

Back
Top Bottom