Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Using the Application.ScreenUpdating = False?

Hi again

My second question!

I am trying to stop the screen from flickering during calculation when program runs.
I have tried this by putting it at the beginning (false) and end (true) of a sub() but still flickers
Application.ScreenUpdating = False

My program has for loops that execute less then100 times and some if/else select/case statements. Some cells change
color and values are deleted aswell.
-its running on a p3

Any advice?

Application.EnableEvents = False seems to do a better job in the Worksheet_Change then the above but still get some
flickering

Thanks

Mike



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Using the Application.ScreenUpdating = False?

Usually "application.screenupdating = false" does a nice job.

But there are some builtin routines that turn it back on (without your knowledge
or consent).

The best you can do is try to isolate these and put a
"application.screenupdating = false" right after it gets changed.

You may also want to double check to see if your routine calls another routine
that turns screenupdating back on when it's done. (Maybe this is the real
cause!)

I'd pepper statements like:

debug.print "step 99: " & application.screenupdating

(varying the step #) throughout the code to help isolate the problem.

Application.screenupdating and application.enableevents are two different
things. .enableevents = false stops anything you're doing from firing another
event (either the same even worksheet_change or a different one).



Susan Hayes wrote:

Hi again

My second question!

I am trying to stop the screen from flickering during calculation when program runs.
I have tried this by putting it at the beginning (false) and end (true) of a sub() but still flickers
Application.ScreenUpdating = False

My program has for loops that execute less then100 times and some if/else select/case statements. Some cells change
color and values are deleted aswell.
-its running on a p3

Any advice?

Application.EnableEvents = False seems to do a better job in the Worksheet_Change then the above but still get some
flickering

Thanks

Mike


--

Dave Peterson
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
How to set Application.ScreenUpdating = False for Gen use David_Williams_PG () Excel Discussion (Misc queries) 1 August 15th 06 12:06 PM
Using the Application.ScreenUpdating = False? Susan Hayes Excel Programming 0 January 29th 05 03:50 AM
Application.screenUpdating = False Pamhall Excel Programming 1 December 17th 04 03:19 PM
Application.ScreenUpdating = False and it still flicker ! Gunnar Johansson Excel Programming 5 September 8th 04 02:42 PM
Application.ScreenUpdating = False Pieter Kuyck Excel Programming 2 July 15th 03 06:28 PM


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

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

About Us

"It's about Microsoft Excel"