Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default How do you stop calculating when running a macro?

I have a large report in which I perform numorious sorts. The report takes a
long time to create because after every sort, it goes through the
calculations. Is there a way to run the report without it calculating until
the very end?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default How do you stop calculating when running a macro?

One way:

Wrap your code with

Application.Calculation = xlCalculationManual

<your code here

Application.Calculation = xlCalculationAutomatic

In article ,
BZeyger wrote:

I have a large report in which I perform numorious sorts. The report takes a
long time to create because after every sort, it goes through the
calculations. Is there a way to run the report without it calculating until
the very end?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default How do you stop calculating when running a macro?

Also, switch application.screenupdating=false at the beginning and switch it
back to true at the end - that will speed things up as well.
--
www.alignment-systems.com


"JE McGimpsey" wrote:

One way:

Wrap your code with

Application.Calculation = xlCalculationManual

<your code here

Application.Calculation = xlCalculationAutomatic

In article ,
BZeyger wrote:

I have a large report in which I perform numorious sorts. The report takes a
long time to create because after every sort, it goes through the
calculations. Is there a way to run the report without it calculating until
the very end?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I tell my Macro to stop running for 10sec? Gazzr[_4_] Excel Programming 3 April 20th 06 05:53 AM
How do I stop a Macro from running? JulianB Excel Worksheet Functions 1 April 10th 06 10:33 PM
How to stop a macro while it is running ? Srikanth[_7_] Excel Programming 1 September 15th 04 12:59 AM
When Save As stop running macro M K W Excel Programming 3 September 2nd 03 03:06 PM
How to Pause or Stop a running Macro jfeka[_2_] Excel Programming 0 July 17th 03 11:14 PM


All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"