As far as I know, recalculation is performed 1) when cells are changed/edited, and other events related 2) on cells that depends on the changed cells. but recalculation does not occurs when a function is changed in the spreadsheet. It will be nice to trigger recalculation when a change in macros occurs. For example: Function AnyFunction( i as long) as Long AnyFunction = i +1 End Function If AnyFunction is used in the spreadsheet and we chage the line AnyFunction = I + 1 to AnyFunction = I + 10 The change is not automatically recalculated. Only by Ctrl+Shift+F9.
[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: http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1 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. Yours! Florian
Created attachment 68251 [details] test case for automatically updating in Calc
reproduced in 3.6.2 on Fedora 64 bit
*** Bug 55774 has been marked as a duplicate of this bug. ***
Verified, marking as NEW and prioritizing: Enhancement: This is behaving as it's intended to but your solution does seem to be a good enhancement Low: Number of users using macros is very low, easy work around (manually updating using the keys you said), and only happens under specific conditions (changing a macro after it's already being used in a sheet) Thanks for your patience and your help in reporting. Regards, Joel
imho it's not a good idea to apply changes automatically. while creating macros and functions a little more complex than the sample by 'trial and error' usually plenty errors evolve before success. this would lead to plenty ruined sheets where it's difficult for the user to go back and find a healthy version. if he's informed that a 'hard' recalc is needed he can apply that quite simple when editing is finished. may be it's good to apply a hint 'function in use in sheet, recalc by ctrl-shift-F9 required' into the editor as it is for subs with 'you'll have to restart the program after this edit'.
as of today and with ver. 6.4.0.1 recalculation for a cell respecting the changed function can also be triggered by hitting F9 while the cell is selected (while it is the 'focus'), other cells using the same function are not! recalculated, they still need ctrl-shift-F9
after some re-think ... forget comment #10: 1. sheets have to be responsive, 2. sheets have to be reactive, 3. sheets have to be consistent, 4. sheets may not carry traps which produce 'later errors', thus each change must be immediately reflected in the workbook while autocalc is on, 5. against the risk of messing up things while experimenting with macros users have to use backups, regarding 'Low: Number of users using macros is very low ...' from c#9: perhaps it would be more users if macros were a bit less complicated and a bit more reliable? thus it would be a good idea to include used functions! into the 'dependency chain'? and trigger recalculation on changes, (macros in opposite have their trigger and are intentionally only calculated when triggered?), there is some (not good working, it omits some pasting actions?) functionality in the macro editor which interrupts edits with dialogs 'you have to restart after that change' or similar, perhaps that can be used to set a recalc trigger for the sheet / cells / functions? complications: functions are not bound to the file, thus it may happen that a sheet is opened on a different system with different functions called by the same name? that ... is too complex for me at the moment ... forced recalc on open with user dialog 'functions results have changed, perhaps reg. different system, pls. check results in cells [list of cells with functions where values changed on recalc]'?