Mark Morrisson

Mark Morrisson

  • NA
  • 5
  • 5.4k

VBA and C# interop

Sep 6 2012 11:42 AM
Hi everyone,

I need to call a DLL in C# from a VBA application. The DLL will expose a method that returns a complex class. I tested the interop and it worked fine when the method returns a primitive type, but when it returns a complex object, it does not work.

I precise I don't know anything at COM (I don't even understand how those GUIDs are generated!), I have Visual Studio .NET Express, what's the easiest method you would recommend to me?

Thanks in advance,
Mark

Answers (4)