#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default Auto-arrange

Right click sheet tabview codeinsert this. Now when you add a date
at the BOTTOM of col G, Col G will sort. If you want the other way,
change xlAscending to xlDEScending

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Or Target.Column < 7 Then Exit Sub
Range("g1:G" & Target.Row).Sort _
Key1:=Range("G1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, Orientation:=xlTopToBottom
End Sub



On Feb 3, 4:54*pm, Mattaphylactic <Mattaphylactic.
wrote:
Hello all, I am quite new to spreadsheets and was wondering if anybody
could help me with this problem. I have attached an image of what I'm
working on. Ideally, when I enter new data, the rows should
automatically arrange themselves oldest to newest by the date in column
G. As far as I know, this has to be done with code? Could someone point
me in the right direction as I have no experience with this.

Thanks again.

+-------------------------------------------------------------------+
|Filename: excelhelp3.jpg * * * * * * * * * * * * * * * * * * * * * |
|Download:http://www.excelbanter.com/attachment.php?attachmentid=288|
+-------------------------------------------------------------------+

--
Mattaphylactic


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
Auto Arrange Kanmi Excel Worksheet Functions 2 June 23rd 09 09:56 PM
Auto Arrange Chart Labels Liztd Charts and Charting in Excel 3 May 25th 08 06:39 PM
how to auto arrange in alphabetical order-excel sheet subha New Users to Excel 2 February 8th 07 08:47 PM
How to auto arrange the worksheet in a excel 2002 file? Balaji's Excel Worksheet Functions 1 May 13th 05 03:06 PM
How do I set up a click "column title" and auto arrange data form. Max Excel Discussion (Misc queries) 1 December 3rd 04 04:44 PM


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