Word.Application Reference

BenH

Registered User.
Local time
Today, 13:32
Joined
Oct 31, 2008
Messages
25
On Access 03, am trying to use this object#

Dim appWord As Word.Application

Get compile error user-defined type not defined.

Which library do I add in the References frame from the Tools menu? I've added the Microsoft Office 12 Object Library, to no avail....

Please help....
 
That would be Microsoft WORD 12.0 that you would need if you are going to use early binding like that. If you use LATE binding then you don't need the reference but then you don't get Intellisense.
 
And that is Microsoft Word 12.0 (if you have Word 2007) or Microsoft Word 11.0 if you have Word 2003.
 
Thanks!

I'm now getting similar message about ADODB.Recordset ??
 
You will need a reference to

Microsoft ActiveX Data Objects 2.x (where x is a number between 1 and 8 currently). The higher the number the higher the version of ADO. But, you need to select what your other users would have. If all of your computers are kept at the same revision levels then you can just select the highest number.
 

Users who are viewing this thread

Back
Top Bottom