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
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