LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Screen flashing during macro execution: Interesting observation

Are you activating the other sheets ? and if so, do you have any code in the
Activate/Deactivate events of those sheets ?

--
Regards,

Juan Pablo González

"jasonsweeney " wrote in
message ...
I ran a macro, from a useform, that inserted about 100 comments into
cells on 10 different worksheets.

As many have talked about in this forum, the screen "flashed" durign
execution of the macro, despite that in the code was written:

_________
Application.ScreenUpdating = False
' Sheet1 code
' Sheet2 code
' etc.
Application.Screenupdating = True
__________

For giggles, I changed the code to:

_________
Application.ScreenUpdating = False
' Sheet1 code
Application.Screenupdating = True
'
Application.ScreenUpdating = False
' Sheet2code
Application.Screenupdating = True
'
Application.ScreenUpdating = False
' etx.
Application.Screenupdating = True
__________

Of course, this did not solve the problem, as many have commented.
Then I tried this:

Application.ScreenUpdating = False
' Sheet1 code
Application.ScreenUpdating = False
' Sheet2code
Application.ScreenUpdating = False
' Sheet3.code
Application.Screenupdating = False
' Etc.
Application.Screenupdating = False

And,.........it Worked! I only got one screen "flash" by doing it this
way. The macro still wasn't as quick as one would desire, but it did
solve the flashing issue. Just wondering if anybody else has
experienced success with this strategy.

Jason Sweeney


---
Message posted from http://www.ExcelForum.com/



 
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 do I turn the screen off during macro execution redondo Excel Worksheet Functions 2 March 4th 10 11:24 PM
Interesting Median observation Bony Pony[_2_] Excel Discussion (Misc queries) 8 December 8th 08 06:07 PM
Screen flashing teepee[_3_] Excel Discussion (Misc queries) 0 November 26th 08 12:20 AM
Screen flashing why? Chet Excel Discussion (Misc queries) 1 May 16th 06 08:25 PM
Screen off during Macro execution CLR Excel Programming 13 December 21st 03 06:04 AM


All times are GMT +1. The time now is 12:17 PM.

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"