How do I call an xll addin function from vba?
问题 I have a 3rd party XLL addin I'd like to wrap in my own custom vba function. How would I call the 3rd party function from my code? Thanks 回答1: Edit: There are at least two ways to do this: Option 1: Application.Run(...) This looks like the best way to go about it, since your arguments are automatically converted to an appropriate type before being sent to the XLL function. Public Function myVBAFunction(A as Integer, B as String, C as Double) myVBAFunction = Application.Run("XLLFunction", A, B