I am having an extraordinarily hard time trying to integrate a basic Class Library made in VB .NET 4.5 using Visual Studio 2013 Community Edition to my Excel 2013 VBA Module.
I have tried countless solutions and have followed the following steps to get here:
- I created a basic Class Library (see below).
- I set the properties "Make assembly COM-visible" and "Register for COM interop" to true (see here).
- I've added a reference to my Excel project. Note* I have to explicitly find the name of my class library in the list of possible references I have to make, check it off, and then click OK in the references window.
VBA Intellisense recognizes the code:
Which means my class library is being properly referenced. However, when I run the code I get Error 429: ActiveX component can't create object.
I have 2 questions:
- How do I fix this?
- What can I do to make my class library work with as little friction as possible for users on other computers. Does everyone have to register the DLL and then import the reference or can they just download my Excel sheet and have everything imported?