Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ScreenUpdating=False doesnt stop screen flicker??


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

--
Simon Lloy
-----------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670
View this thread: http://www.excelforum.com/showthread.php?threadid=52560

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 145
Default ScreenUpdating=False doesnt stop screen flicker??

You may have left out a "dot" in front of screenupdating (two places) please

"Simon Lloyd"
wrote in message
...

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
trouble is when it performs this the screen flickers while its
calculating no matter what i do!!!!, is there a way of doing what i
need easier? or is there a way of stopping the flicker because it looks
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 Sub


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile:

http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=525605



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default ScreenUpdating=False doesnt stop screen flicker??

Try putting the
Application.ScreenUpdating = False before the "WITH" statement and turn
back on after the "WITH"

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ScreenUpdating=False doesnt stop screen flicker??


I have tried the ScreenUpdating before the with but it made no change
the flicker is there every time it sorts!

Regards,

Simo

--
Simon Lloy
-----------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...nfo&userid=670
View this thread: http://www.excelforum.com/showthread.php?threadid=52560

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default ScreenUpdating=False doesnt stop screen flicker??

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

--


Gary


"Simon Lloyd" wrote
in message ...

I have tried the ScreenUpdating before the with but it made no change,
the flicker is there every time it sorts!

Regards,

Simon


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile:
http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=525605





  #6   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default ScreenUpdating=False doesnt stop screen flicker??

Your problem may have been selecting a range before turning off screenupdating.


"Simon Lloyd" wrote:


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
trouble is when it performs this the screen flickers while its
calculating no matter what i do!!!!, is there a way of doing what i
need easier? or is there a way of stopping the flicker because it looks
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 Sub


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=525605


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 flicker mark kubicki Excel Programming 2 March 22nd 05 12:03 AM
Button flicker with screenupdating Mark Anders via OfficeKB.com Excel Programming 3 February 6th 05 12:23 PM
Application.ScreenUpdating = False and it still flicker ! Gunnar Johansson Excel Programming 5 September 8th 04 02:42 PM
Screen flicker despite ScreenUpdate = False in the first line of code Gunnar Johansson Excel Programming 6 September 3rd 04 02:05 PM
Screen Flicker JonWayn Excel Programming 1 November 1st 03 11:34 PM


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