I have turned off the
application.calculation = xlcalculationmanual
and after such a lengthy vba code I have done these at the end
application.calculation = xlcalculationautomatic
What I saw is these statement is taking 20 seconds and sometimes hanging up when I restore the xlcalculation
application.calculation = xlcalculationautomatic
I really do not understand why it is taking a lot of time for that statement. To save the time, I just neglected to restore it. Is there any effect if I do not restore it back?
The consequence is that no calculations will be done. So if you have a cell with formula
=A1+A2and you change the values of A1 and A2, then the result won’t be updated to the actual sum of the current values of A1 and A2 until you force a calculation manually F9 or select automatic calculation again. This can also be done manually in Tools > Options… > Calculation.