Apache OpenOffice (AOO) Bugzilla – Issue 8869
Basic Function =XSheetName(x) fails on load of the spreadsheet document ...
Last modified: 2003-09-25 11:55:39 UTC
When I'm using the following Formula in a spreadsheet, I get the Name of the sheet as String: e.g. in Cell A1: =XSheetName(1) returns "MySheet" When I save the spreadsheet document with the oo 1.0.1 file format .sxc, the Function fails on Load (Object is Null ?). When I save the document as SO 5.2 .sdc, it works on load ... any hints ? regards Oliver -- Function XSheetName(ByVal nIndex as Long) as String XSheetName = StarDesktop.CurrentComponent.Sheets.getByIndex(nIndex-1).Name End Function
Created attachment 3442 [details] Function XSheetName
I have to be more precise: When I start OO 1.0.1 and then use File->Open to open the spreadsheet document, it works ... But when I double click on the file to open (and to start oo), it fails, is it a initalization problem ? Oliver
Hi, I you disable the feature "AutoCalculate", it works, seems, that at the time the sheet is calculated, the oDocument Object isn't avaiable ... best regards Oliver
Hi Skotty, please have a look. Frank
Hi Oliver, using ...CurrentComponent... at loadtime is not a good idea, the object might not exist at that point. Try to use "thisComponent" instead. I invalidate this issue. If you still have problems, please report back, thank you. Joerg
close