I am having a terrible time understanding Excel's calculation modes
and when exactly the message *CALCULATE* appears on the bottom
left of the status bar. Let me boil down this down to one use-case.
Say you have your spreadsheet set to Manual mode. Further assume
you have a subroutine that merely assigns something to Range.Formula.
Something like:
Dim r as Range
Set r = Range("a2")
r.Formula = "=MYFUNC()"
(Assume MYFUNC just returns some deadbeat string.)
When I run the subroutine (F5) I find that everytime the control
passes through r.Formula, the CALCULATE message appears.
That is, despite the fact that assignment to r.Formula actually
caused MYFUNC to execute. Now I am forced to click on that
CALCULATE button to make it go away and this has the side-
effect of calling MYFUNC *one more time*. In essence MYFUNC
is executed *twice*.
Is this expected behavior?
and when exactly the message *CALCULATE* appears on the bottom
left of the status bar. Let me boil down this down to one use-case.
Say you have your spreadsheet set to Manual mode. Further assume
you have a subroutine that merely assigns something to Range.Formula.
Something like:
Dim r as Range
Set r = Range("a2")
r.Formula = "=MYFUNC()"
(Assume MYFUNC just returns some deadbeat string.)
When I run the subroutine (F5) I find that everytime the control
passes through r.Formula, the CALCULATE message appears.
That is, despite the fact that assignment to r.Formula actually
caused MYFUNC to execute. Now I am forced to click on that
CALCULATE button to make it go away and this has the side-
effect of calling MYFUNC *one more time*. In essence MYFUNC
is executed *twice*.
Is this expected behavior?