I'm making a C# interface which my VBA code can call. The method takes an array of string as parameter, and it has to be a ref
type, pass by value (without ref
in C#) gives me error when calling the function in VBA.
Error when calling the interop method in VBA:
Compile error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic