LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Gareth Roberts
 
Posts: n/a
Default

You could trap every change made on the worksheet and sort each time. Place
the following code in the worksheet module for the sheet into which you will
import your data

Private Sub Worksheet_Change(ByVal Target As Range)

'sorts ascending for Column 1 and Column 2
Me.UsedRange.Sort Key1:=Me.Range(Cells(1, 1).Address),
Order1:=xlAscending, _
Key2:=Me.Range(Cells(1, 2).Address),
Order2:=xlAscending, _
Header:=xlYes

End Sub

Note this sorts every time you change any cell on the worksheet so you may
like to refine it to only work on certain columns.

HTH,
Gareth


"tamato43" wrote in message
...
Is there a way to format cells or columns to automatically re-sort?

I'm importing infomation from another file and I'd like to sort from Hich

to
low as the numbers change.



 
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
How do I sort a list automatically? Defoes Right Boot Excel Discussion (Misc queries) 1 February 4th 05 05:56 PM
how do i automatically sort a list Defoes Right Boot Excel Worksheet Functions 0 February 3rd 05 02:19 PM
"-" ignored in sort Mike H Excel Discussion (Misc queries) 8 January 2nd 05 07:48 AM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM
sort automatically Mike Lemke Excel Worksheet Functions 2 October 31st 04 08:18 PM


All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"