How install library in VBA Excel?
Ommit There are two ways to add references via VBA to your projects 1) Using GUID 2) Directly referencing the dll. Let me cover both. But first these are 3 things you need to take care of a) Macros should be enabled b) In Security settings, ensure that "Trust Access To Visual Basic Project" is checked c) You have manually set a reference to `Microsoft Visual Basic for Applications Extensibility" object Way 1 (Using GUID) I usually avoid this way as I have to search for the GUID in the registry... which I hate LOL. More on GUID here. Topic: Add a VBA Reference Library via code Link: http://www.vbaexpress.com/kb/getarticle.php?kb_id=267
Way 2 (Directly referencing the dll) This code adds a reference to
Note: I have not added Error Handling. It is recommended that in your actual code, do use it :) EDIT Beaten by |