PDA

View Full Version : Solved: Stop excel from calculating



jazzyt2u
04-20-2009, 03:49 PM
Hi,
Is there a way to keep Excel from calculating because it's taking a long time to run the macro because the file keeps calculating: (1 processor(s)) 0% and it takes forever for it to get to 100% at which the macro goes to the next bit of coding...

Thanks,
jazzyt2u

Digita
04-20-2009, 04:17 PM
Hi jazzyt2u,

Application.Calculation = xlManual

The above command turns calc mode from auto to manual. However, you should check the code to ensure that it does not have any boolean tests which rely on the calculation output before turning off the auto calc mode. At the end of the code, turn the auto calc back on by

Application.Calculation = xlAutomatic

Regards


kp

jazzyt2u
04-20-2009, 04:20 PM
Thanks a bunch!!!!