PC Review


Reply
Thread Tools Rate Thread

How do you stop calculating when running a macro?

 
 
=?Utf-8?B?QlpleWdlcg==?=
Guest
Posts: n/a
 
      8th May 2007
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 With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      8th May 2007
One way:

Wrap your code with

Application.Calculation = xlCalculationManual

<your code here>

Application.Calculation = xlCalculationAutomatic

In article <C35EDECA-5D39-4343-BF5C-(E-Mail Removed)>,
BZeyger <(E-Mail Removed)> 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 With Quote
 
=?Utf-8?B?Sm9obi5HcmVlbmFu?=
Guest
Posts: n/a
 
      9th May 2007
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 <C35EDECA-5D39-4343-BF5C-(E-Mail Removed)>,
> BZeyger <(E-Mail Removed)> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to stop a macro from running? everymn@yahoo.com Microsoft Access Macros 1 6th Nov 2006 09:06 PM
How do I stop a Macro from running? =?Utf-8?B?SnVsaWFuQg==?= Microsoft Excel Worksheet Functions 1 10th Apr 2006 10:33 PM
Stop running a macro in the middle of a macro gmunro Microsoft Excel Programming 3 9th Jun 2005 06:00 PM
Stop macro from running more than once? =?Utf-8?B?Tmlra2k=?= Microsoft Powerpoint 10 19th Apr 2005 12:39 PM
How to stop a macro while it is running ? Srikanth Microsoft Excel Programming 1 15th Sep 2004 12:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 PM.