I am trying to call the IRR function from a LibreOffice basic macro, but get an
Illegal Argument Exception
Function Bla()
Dim oFunc as Object
oFunc = createunoservice("com.sun.star.sheet.FunctionAccess")
Dim args(1) as Variant
args(0) = Array(3300, -1000, -2000)
args(1) = 0.1
Dim vResult as Variant
vResult = oFunc.callFunction("IRR", args)
Print vResult
End Function
What is the correct way to call the function?