Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2007

Tip: Looking for answers? Try searching our database.

Adding a reference to ADO library to Word project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick Charnes - 28 Aug 2007 16:02 GMT
I've done some investigations about using ADO to bring information from
SQL into a Word macro.  I have some code but I think the piece I'm
missing is how add a reference to the Microsoft ActiveX Data Object
Library to my Word VBA project.  Can someone suggest how I do this?  
Thanks very much.
Peter Jamieson - 28 Aug 2007 16:38 GMT
In the VBA Editor, with the relevant module open, use Tools|References. Look
down the list for Microsoft ActiveX Objects 2.n Library (you may see several
different versions). Check the version you want to use, e.g. 2.8. Click OK.

If your code is going to be distributed to other platforms, you need to
choose your version carefully (and I can't really help you there) but during
the learning phase it probably doesn't matter all that much which one you
select.

Signature

Peter Jamieson
http://tips.pjmsn.me.uk

> I've done some investigations about using ADO to bring information from
> SQL into a Word macro.  I have some code but I think the piece I'm
> missing is how add a reference to the Microsoft ActiveX Data Object
> Library to my Word VBA project.  Can someone suggest how I do this?
> Thanks very much.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.