Generate C# class with interface in single file
-
Open admin shell prompt
Start-Process Powershell -Verb runAs
-
Export dll
csc /target:library .\cSharpTestLibrary.cs
-
Register dll and create tlb file
regasm /codebase /tlb .\cSharpTestLibrary.dll
-
Open up
Book.xlsm
-
Open up the VBA view
-
Add reference to vba project via Tools -> References
- use the features in the new reference created