ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Late Binding to a dll (https://www.excelbanter.com/excel-programming/371611-late-binding-dll.html)

XLW

Late Binding to a dll
 
I currently set a reference in the VBE (Tools References) to a
database api dll but some users of the spreadsheet will not have access
to the directory at which the dll is located so an an error is
returned.
Is there a way to set the reference at run time once I have determined
whether or not the directory exists?

Something like References.AddfromFile "C:\Server\MyDll.dll"


Any suggestions gratefully received.
Thanks
Simon



All times are GMT +1. The time now is 01:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com