Calling a COM function with System.Type parameter from VBA

81 Views Asked by At

I developped an API using C# .NET in which there's a function with a "System.Type" as parameter : "public string MyFunction(System.Type myType) { ... }"

This function is COM visible.

In an Excel workbook, I reference the API (MyApi) and I want to call this function but I don't find any way to do so. Is it possible ?

Public Sub test()
    Dim t As String
    t = MyApi.MyFunction(???)
End Sub

Thank you very much.

0

There are 0 best solutions below