I had a problem using custom functions written in OOBasic in Calc documents (OOo 2.3.0). The problem can be reproduced like this (assuming that all operations are on the same sheet, for example Sheeet1):
1. Create new spreadsheet document, and write new OObasic function (any function will do, this is just an example):
Code: Select all
Function testfunc (x As Integer) As Integer
testfunc = 2 * x
End Function
2. In any cell write, for example:
The result value for that cell should be 8.
3. In any empty cell write text
4. Now, if you try to write in any cell something like step 2, for example:
the written function becomes inaccesible and the result value in that cell becomes "#REF!". Calc would not let you to write text "=testfunc(3)", as it's automatically replaced with
Previous cell from step 2 is still working (calculating) as before step 3, and any copy/paste of that cell still works, although if you try to edit it, it will stop to work and it't value will become "#REF!".
Is this bug or feature (expected behaviour)? It took me a few hours to figure out why several of my functions were constantly "ignored" by Calc. If this is a feature, can it be turned off? If this is a bug, I guess I should report it to OOo team.