Interrupting long calculations in Excel? Hi all, I am having a verylong calculation in Excel using

L

LunaMoon

Interrupting long calculations in Excel?

Hi all,

I am having a very long calculation in Excel using VBA.

Of course I know I can hit ESC or CTRL+BREAK to interrupt the VBA
program.

But I found due to too long running process, the Excel window stop to
respond for very long time,

besically it's like "not responding" situation with "not responding"
on the windows title bar...

It doesn't seem to accept any more key strokes, not to say ESC or CTRL
+BREAK.

What can I do to rein/stop my program?

Thanks
 
B

Barb Reinhardt

Try this to speed up execution

Application.ScreenUpdating = FALSE
Application.Calculation = xlCalculationManual
At the begining of the code and

Application.ScreenUpdating = True
Application.Calculation =XlCalculationAutomatic

At the end of the code
 
L

LunaMoon

Try this to speed up execution

Application.ScreenUpdating = FALSE
Application.Calculation = xlCalculationManual
At the begining of the code and

Application.ScreenUpdating = True
Application.Calculation =XlCalculationAutomatic

At the end of the code

Thanks. The purpose of this is to allow me to interrupt, or speed up
the code?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top