i want to call a function "arrayfun1" in vba from an xll-addin with "Application.Run"
Sub test()
Dim val As Variant
val = Application.Run("arrayfun1", arg1, arg2, ...)
End Sub
this works for functions that return just one output, but not for functions that return arrays. However, if i use the function as Arrayformula in a sheet it works. But i am looking for a programatical solution.
any ideas?