Thread: Sorting by date
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Simon Lloyd[_579_] Simon Lloyd[_579_] is offline
external usenet poster
 
Posts: 1
Default Sorting by date


Try this (untested), you need then to set the range that you are tryin
to sort

Sub Macro1()
'
' Macro1 Macro

Range("A2:A25").Select

Selection.Sort Key1:=Range("A2"), Order1:=xlAscending
Header:=xlGuess, OrderCustom:=1, MatchCase:=False
Orientation:=xlTopToBottom

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=26637