Are you trying to access .Net DLL from within MS Office Vba macro ? Then you simply need to switch perspective and write your program in Vb.net or C# .Net using Visual Studio and call excel library methods from there. I wasted a lot of time trying to call a .Net library from VBa - see my original message further below. Call the old technology from the new, not the other way round...
Thanks for setting me on the right track Govert !
How to: Access Office Interop Objects by Using Visual C# Features (C# Programming Guide) https://msdn.microsoft.com/en-us/library/dd264733.aspx
-------------------- original cry for help -------------------------------------
Hello awesome people of stackoverflow. Many thanks for all the great QA's I have perused to date. Now is the time for my first question...
I'm unable to figure out how to query an Azure Service Bus Queue from VBa in the most elegant way possible. Please help! I'm losing sleep over it...
What I have tried is compiling azuresblite open source library with COM interop enabled, and using that within VBa. But it's fraught with challenges (constructors not supported by COM, static members not visible etc.) I then tried writing a COM friendly wrapper over Microsoft.ServiceBus.dll but that gets ugly and complicated, and involves some difficulty installing Microsoft.ServiceBus.dll on non-development machine without the Azure SDK, and it's code intensive and too hard to debug etc...
My latest thoughts are around - Can Visual Studio for Office 365 offer me what I need ? (but how does this web app in spreadsheet help me achieve elegant waiting / no cpu usage / no constant refreshes when the message queue is empty ?) - write an Excel add-in using http://exceldna.codeplex.com/ (will it address the problems I had with dependency on Microsoft.ServiceBus.dll and so forth ?)
Thanks for reading.