I'm trying to learn to write Macros in LO Calc, version 4.2.2.1. When I run any function in a blank spreadsheet, it returns the #VALUE! error in any cell. Here's one such function, which should output the result of two parameters added together.
Function AddNumbers(X, Y)
Return X + Y
End Function
When I type the formula =ADDNUMBERS(3, 6)
in a cell on the spreadsheet which the library is contained, it returns #VALUE!
. I tried to use a parameterless function:
Function ReturnFive
ReturnFive = 5
End Function
=RETURNFIVE()
still returns #VALUE!
. I've set macro security to Low, so all macros should be able to run. Why might I be getting this problem?