Question: how to call xll functions in vba?
Answer: A VBA macro can call an XLL-based UDF via Application. Evaluate("=MyUDF()"). It is impossible to differentiate calls from a worksheet and from a VBA macro.