NEED a PRO: Screen Epilepsy

  • Thread starter Thread starter brucemc
  • Start date Start date
B

brucemc

I found a number of posts relating to this, but ain't yet seen nothin'
of any consequence, so..

Even though I clamped down on the modules / sheet changes with
Application.ScreenUpdate = False

and further made certain I was not turning it on and turning it off
when multiple modules were called and I was resetting protection on and
off for sheet info being written, and took the exact same precaution for

Application.EnableEvents = False

, the sheet the code initiates from, and especially the shapes thereon,
flash like the screen is having a freaking seizure.

One of you old pros or young geniuses out there (I am an old
hunt-and-pecker, but my wife just calls me "pecker" for short): What
the heck else can I do to try to eliminate all that flicker???
(Please!!!)
 
The only setting which affects scree flicker is screen updating. The most
likely cause of the flick is (ironically enough) overuse of the screen
updating. Every time screen updating is turned on (application.screenupdating
= true) the screen will refresh itself. So if I have two procedures one
calling the other in a loop such as this...

sub mainprocedure
dim i as integer
application.screenupdating = false
for i = 1 to 100
call MySub
sheets("Sheet1").select
next i
application.screenupdating = true 'flicker
end sub

sub MySub()
application.screenupdating = false
sheets("Sheet2").select
application.screenupdating = true 'flicker
end sub

Then my screen will update 101 times and flicker...
 
Just to cover all of the bases, depending on what errorhandling he is using

Application.ScreenUpdate = False

would not disable screenupdating. Maybe a typo in the OP's part?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top