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

Hi All

I have a macro that does things like opening other files,
pops up text boxes and the like. The problem is that at
the beginning I turn off screen updating and then it
decided to turn itself back on again. Does anyone know
where I can get a list of events that turn screen updating
on from?

Thanks heaps
Jase
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Screen Updating

First, ScreenUpdating always reverts returns to true when code
execution ends i.e. you only have control over ScreenUpdating during
run-time. Second, ScreenUpdating is local to the sub procedure, so if
Sub One sets ScreenUpdating to false then calls Sub Two, the value of
ScreenUpdating will be true in ScreenUpdating but false when execution
returns to Sub One. Third, every time you toggle ScreenUpdating the
screen flickers, so if you do it too many times it defeats the objects
of turning ScreenUpdating off. In conclusion, only toggle
ScreenUpdating in your top level sub procedures in your routines.

"Jase" wrote in message ...
Hi All

I have a macro that does things like opening other files,
pops up text boxes and the like. The problem is that at
the beginning I turn off screen updating and then it
decided to turn itself back on again. Does anyone know
where I can get a list of events that turn screen updating
on from?

Thanks heaps
Jase

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
SCREEN NOT UPDATING ub Excel Worksheet Functions 2 March 18th 09 11:52 AM
print box opens in right screen of dual screen setup why gerrys Excel Discussion (Misc queries) 1 June 30th 06 06:47 PM
Screen Updating Michael Excel Worksheet Functions 3 March 14th 05 09:53 PM
Screen updating Mark Stephens Charts and Charting in Excel 0 February 18th 05 03:55 PM
Screen flickering when updating textboxes Fred. Mo Excel Programming 0 September 30th 03 01:10 PM


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