View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ronda ronda is offline
external usenet poster
 
Posts: 1
Default sort data after import


Hi everyone,
I am looking to do a sort after my data has finished importing. Mayb
something with a time wait? I have the following code that work
however it slows things down tremendously (because it re-sorts ever
line as it is imported)

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Sheets("Detail").Select
Range("K1").Select
Selection.Sort Key1:=Range("K2"), Order1:=xlAscending
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom

Any ideas would be appreciated.
Thanks

--
rond
-----------------------------------------------------------------------
ronda's Profile: http://www.excelforum.com/member.php...fo&userid=1036
View this thread: http://www.excelforum.com/showthread.php?threadid=31992