Message 1 of 3
How do you programmatically load references?
Not applicable
03-21-2010
09:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have several large VBA programs that I've written in the AutoCAD VBA IDE. These programs retrieve data from Excel files. Most of the time, the programs work fine. However, occasionally, I need to send the program to a new user that uses a different version of Excel. Of course, the program doesn't work in these cases, because the Excel reference is wrong, and it is sometimes difficult to explain to the user how to go into the VBA interface and change the reference.
I need to find a way to programmatically set the Excel library reference. Ideally, this code would search the users computer for the version of excel, and then load the correct VBA reference.
I've done some research, and found different methods for loading the references between other Microsoft programs, but not between Acad and Excel.
I'm hoping someone here can provide some direction.
Thanks
I need to find a way to programmatically set the Excel library reference. Ideally, this code would search the users computer for the version of excel, and then load the correct VBA reference.
I've done some research, and found different methods for loading the references between other Microsoft programs, but not between Acad and Excel.
I'm hoping someone here can provide some direction.
Thanks