Turning Off Calculation

  • A common mistake is to to turn off calculation and allow for the code to take a path where it will not be turned back on again.


    For example the following code turns off calculation. It then ask the user to input a date. If the user does not enter a correct date the programmer has decided that the user should be alerted and the procedure to be stopped.



    The problem is calculation has not been turned back on. And the user may be looking at a uncalculated screen.


    This would be a better option: