Does anyone know a way to control the linking of reference libraries (in other applications) from within VBA? Here's the problem: I have a large VBA application for Excel; our primary platform is Windows NT 4.0. Recently, we started converting new PCs to Windows 2000. When the VBA app is opened on a W2K machine, it's looking for a link (for instance) to an Adobe Acrobat library, acrobat.tlb. As established via the VBA "Tools," "References" menu, the app expects to find acrobat.tlb on a particular user drive, and in a particular folder. W2K users now have drive C: as the primary drive, whereby Windows NT users have drive D: as the primary drive. Some users have Acrobat version 4.0, while others have version 5.0. So, long story short, when any user tries to load and run the app, an error message is displayed because VBA can't find (and link to) the acrobat.tlb file. The user has to go into the VBA editor, manually deselect the previous reference to acrobat.tlb, and select a new one (i.e., the location of the file on that PC). I'd like to be able to do this from the auto_open( ) procedure, by detecting where the acrobat.tlb file is located on that machine (this part I can handle), then creating a VBA link to that file, and removing any links that point to a non-existent file (on that machine). Any ideas? Thanks...
Ken McDaniel
Ken McDaniel