referencing dao using vba

P

papou

Hi
You may use the AddFromFile method available from the VBProject property,
eg:
ThisWorkbook.VBProject.References.AddFromFile _
"C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll"

HTH
Cordially
Pascal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

associative arrays 2
Filesearch error in Excel 2
Excel VBA Matrix Operations 5
Change color on faceid 3077 2
Chart events 4
and so on OnEntry 1
Save clipboard images to file 1
ADODB 4

Top