Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

ScreenUpdating=False doesnt stop screen flicker??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon Lloyd - 23 Mar 2006 10:18 GMT
I have posted some code below, it sorts the sheet within the rang
everytime a value is changed putting the highest value at the top, th
trouble is when it performs this the screen flickers while it
calculating no matter what i do!!!!, is there a way of doing what
need easier? or is there a way of stopping the flicker because it look
horrendous?

Regards,
Simon

Private Sub Worksheet_Calculate()
Range("A2:V40").Select
With Application
.ScreenUpdating = False
Selection.Sort Key1:=Range("T2"), Order1:=xlDescending
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
_
DataOption1:=xlSortNormal
.ScreenUpdating = True
End With

End Su
PY & Associates - 23 Mar 2006 10:33 GMT
You may have left out a "dot" in front of screenupdating (two places) please

> I have posted some code below, it sorts the sheet within the range
> everytime a value is changed putting the highest value at the top, the
[quoted text clipped - 19 lines]
>
> End Sub
raymond.allan@bench.com - 23 Mar 2006 11:05 GMT
Try putting the
Application.ScreenUpdating = False before the "WITH" statement and turn
back on after the "WITH"
Simon Lloyd - 23 Mar 2006 14:10 GMT
I have tried the ScreenUpdating before the with but it made no change
the flicker is there every time it sorts!

Regards,

Simo
Gary Keramidas - 23 Mar 2006 16:17 GMT
i don't see any flashing, just the updated data after it sorts

Private Sub Worksheet_Calculate()
Application.ScreenUpdating = False
Range("A2:V40").Sort Key1:=Range("T2"), Order1:=xlDescending, Header:=xlGuess, _
   OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
   DataOption1:=xlSortNormal
Application.ScreenUpdating = True
End Sub

Signature

Gary

> I have tried the ScreenUpdating before the with but it made no change,
> the flicker is there every time it sorts!
>
> Regards,
>
> Simon
JMB - 24 Mar 2006 09:05 GMT
Your problem may have been selecting a range before turning off screenupdating.

> I have posted some code below, it sorts the sheet within the range
> everytime a value is changed putting the highest value at the top, the
[quoted text clipped - 19 lines]
>
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.