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
 
Top