Message 1 of 6
Setting References Programmatically
Not applicable
01-26-2007
10:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've read in several posts that you can set references programmatically. I have created and incorporated a scripting dictionary in my first ever VBA routine. Of course I had to check the Microsoft Scripting Runtime in References to create it, and it looks like my end users will have to do the same. So I'd like for the program to do it without user intervention.
In a really old post, Joe Sutphin showed how to create an AddReference function but prefaced it by saying "You must set a reference to 'Microsoft Visual Basic Extensibility 5.3' for this to work. So, for my purposes, it looks like I might as well just go to each machine and reference Microsoft Scripting Runtime and forget trying to do it programmatically. Have I misunderstood something?
In a really old post, Joe Sutphin showed how to create an AddReference function but prefaced it by saying "You must set a reference to 'Microsoft Visual Basic Extensibility 5.3' for this to work. So, for my purposes, it looks like I might as well just go to each machine and reference Microsoft Scripting Runtime and forget trying to do it programmatically. Have I misunderstood something?