Apache OpenOffice (AOO) Bugzilla – Issue 34722
[macro] Macro recorder records cellmovements while entering formula
Last modified: 2013-08-07 15:12:27 UTC
open a new OO.o spreadsheet start in A1 click Tools | Macros | Record Macro move to C8 enter 1,2,3 in cells C8,C9,C10 move to C11 enter formula =SUM(now move up 1, hit shift to anchor, move up 2 more, close paren) hit return (C11 shows 6) click Stop Recording save the macro with a new name. Now clear the data on the sheet, and run the new macro. It puts the formula "=Sum(C8:C10)" belonging in cell C11 into cell C8, and shows "Err:522" in C8. C9 correctly contains 2. C10 correctly contains 3. C11 is blank
Hi Joerg, please have a look. Target 2 Ok ? Frank
The problem is that the uno:GoUp events are recorded while the formula is created. The Current cell is c8 then and this is where the formula is inserted. This is indeed a problem, i believe the effort to fix this is significant. Workaround: Enter the formula directly or edit the BASIC code afterwards. According to the OOo PCDs i cannot do much more than to set this issue to "OOo Later" as target, macros have no priority for the upcoming release and OOo 1.x. - reassign - changed summary
See issue 17396 and issue 9769. *** This issue has been marked as a duplicate of 9769 ***
closing duplicate.