Is there a way to add a reference?

K

Kenji

Is there a way to add a "reference" or "library" through VBA? I want my
excel sheet to add the "MSXML" library.. only if the person's running
Windows. Thanks!

Kenji
 
T

Tom Ogilvy

Yes, use the references collection (AddFromfile or AddFromGuid) in the MS
Visual Basic Extensibility Library. Create a reference to it an see help
for details.
 
K

Kenji

Tom,
I want to add it through code. I want to put a check on a library in my
reference through VBA code.

Kenji
 

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

Top