Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Reduce Flashing

Excel 2002. My workbook has about 30 worksheets which I activate
sequentially to simulate animation. Problem is, Excel seems to want to
clear each worksheet in turn as it is activated and then re-display all
the drawing objects on it. This causes a distracting flashing as the
worksheets are activated. Is there a workaround for this? TIA, James

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Reduce Flashing

Try:

Application.ScreenUpdating = False
' your code
Application.ScreenUpdating = True

Regards

Trevor


"Zone" wrote in message
oups.com...
Excel 2002. My workbook has about 30 worksheets which I activate
sequentially to simulate animation. Problem is, Excel seems to want to
clear each worksheet in turn as it is activated and then re-display all
the drawing objects on it. This causes a distracting flashing as the
worksheets are activated. Is there a workaround for this? TIA, James



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Reduce Flashing

Thank you, Trevor, but application.screenupdating=False prevents the
display of the various sheets. Evidently, if I put this instruction in
before the next sheet is activated, the screen fails to show the next
sheet. If I put it after the next sheet is activated, it's too late to
prevent the sheet from updating itself. James

Trevor Shuttleworth wrote:
Try:

Application.ScreenUpdating = False
' your code
Application.ScreenUpdating = True

Regards

Trevor


"Zone" wrote in message
oups.com...
Excel 2002. My workbook has about 30 worksheets which I activate
sequentially to simulate animation. Problem is, Excel seems to want to
clear each worksheet in turn as it is activated and then re-display all
the drawing objects on it. This causes a distracting flashing as the
worksheets are activated. Is there a workaround for this? TIA, James


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default Reduce Flashing

As your need to show each step of the "animation", that is what you are
seeing. If there are blocks of code that you do not need the user see, then
sandwich them in .DisplayAlerts=false/True statements.
Not sure, but playing with Application.Calculation and possibly
Worksheet.DisplayPageBreaks, may help.

NickHK

"Zone"
egroups.com...
Excel 2002. My workbook has about 30 worksheets which I activate
sequentially to simulate animation. Problem is, Excel seems to want to
clear each worksheet in turn as it is activated and then re-display all
the drawing objects on it. This causes a distracting flashing as the
worksheets are activated. Is there a workaround for this? TIA, James



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Reduce Flashing

Another thing to try is putting

Application.Screenupdating = True
Application.Screenupdating = False

.... pairs of code-lines at the places in your process that you want to
see what has been updated. It has the effect of redrawing the screen
and then freezing it again.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default Reduce Flashing

Yes, that I meant, not .DisplayAlerts.
Don't know where taht came from.

NickHK

"Greg Glynn"
egroups.com...
Another thing to try is putting

Application.Screenupdating = True
Application.Screenupdating = False

... pairs of code-lines at the places in your process that you want to
see what has been updated. It has the effect of redrawing the screen
and then freezing it again.



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
Flashing value kdp Excel Discussion (Misc queries) 2 September 8th 09 11:06 PM
Flashing Cell deepak Excel Discussion (Misc queries) 4 September 8th 09 04:52 PM
Flashing cells MAX Excel Worksheet Functions 1 April 28th 09 02:36 AM
flashing cell because Excel Discussion (Misc queries) 3 May 27th 07 01:16 PM
Flashing spreadsheet cridhe1 Excel Discussion (Misc queries) 5 September 2nd 05 11:48 AM


All times are GMT +1. The time now is 12:38 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"