sort data after import

  • Thread starter Thread starter ronda
  • Start date Start date
R

ronda

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
 

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