Prevent calculation

  • Thread starter Thread starter Pat
  • Start date Start date
P

Pat

When I run a lengthy piece of code the sheet immediately calculates even
though a calculation (which takes quite a while) has not been included in
the code. Is there a way to prevent this from happening?

Pat
 
Pat, try this

Application.Calculation = xlCalculationManual
'your code here
Application.Calculation = xlCalculationAutomatic


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
Paul B,
your additional code has help speed up my spreadsheet, many thanks.
Pat
 

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

Back
Top