LibreOffice version is 3.3.2 (000330m19 - build:202) ; Fr, official version.
The hardware is x86, OS is Mandriva Linux 2010.2 (expect unrelated to problem.)
"thisComponent.currentController.activeSheet" is supposed to define as an object the active sheet of the active spreadsheet.
(e.g. oSheet = thisComponent.currentController.activeSheet)
This works correctly if the spreadsheet is already loaded.
If the macro is a function, and is contained in the spreadsheet in question, when loading the spreadsheet an error is produced once for every time the macro is invoked in the spreadsheet :
"variable object not defined." (message translated from French)
A partial workaround exists, using either
However this workaround requires that the macro knows which sheet one wishes to use for the calculation, whereas '.activesheet' automatically selects the currently active sheet. (That is, the sheet in which is located the macro reference.)
I suspect that the problem arises because the focus is not yet defined when recalculations are being done on loading the sheet. However the focus should be taken from the sheet in which the function is used.
After the spreadsheet is loaded, '.activesheet' works fine using either ctrl/shift/f9 to recalculate all cells (even if another sheet is active),
or modifying a cell using the macro function.
Note that this problem exists also for OpenOffice 188.8.131.52 (OOO320m15 build:9492)
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Dear bug submitter!
Due to the fact, that there are a lot of NEEDINFO bugs with no answer within the last six months, we close all of these bugs.
To keep this message short, more infos are available @ https://wiki.documentfoundation.org/QA/NeedinfoClosure#Statement
Thanks for understanding and hopefully updating your bug, so that everything is prepared for developers to fix your problem.
Created attachment 71988 [details]
Test document showing the problem
If you open the file you get an error message since the focus is not yet taken by the active sheet
I can confirm that the problem described is present in 184.108.40.206 under ubuntu 12.04
Never confirmed by QA team - moving to UNCONFIRMED.
(In reply to Joel Madero from comment #8)
> Never confirmed by QA team - moving to UNCONFIRMED.
Since there is a test document submitted to confirm the bug, by someone other than the bug reporter, it is appropriate that it should be considered confirmed.
The definition of "confirmed" does not require review by the QA team.
Correcting status to "new" (which means confirmed).
This particular example works for me, but I believe its same general problem as 53899
*** This bug has been marked as a duplicate of bug 53899 ***