Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sorting by date


Hi,

I have an Excel sheet with a list of approx 150 documents i
alphabetical order, and column G contains the date the document wa
last updated. What I need to do is put some code into a worksheet tha
will pull each row through and then sort it by date. Any ideas

--
madblok
-----------------------------------------------------------------------
madbloke's Profile: http://www.excelforum.com/member.php...fo&userid=1442
View this thread: http://www.excelforum.com/showthread.php?threadid=26637

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Sorting by date

Not sure what pull each row through means, but have you tried the macro
recorder?

--

HTH

RP

"madbloke" wrote in message
...

Hi,

I have an Excel sheet with a list of approx 150 documents in
alphabetical order, and column G contains the date the document was
last updated. What I need to do is put some code into a worksheet that
will pull each row through and then sort it by date. Any ideas?


--
madbloke
------------------------------------------------------------------------
madbloke's Profile:

http://www.excelforum.com/member.php...o&userid=14422
View this thread: http://www.excelforum.com/showthread...hreadid=266370



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Sorting by date

Hi MadBloke,

At a guess, try something like:

Sub Tester()
Range("G1").CurrentRegion.Sort Key1:=Range("G2"), _
Order1:=xlAscending, _
Header:=xlGuess, _
OrderCustom:=1, _
MatchCase:=False, _
Orientation:=xlTopToBottom
End Sub

---
Regards,
Norman



"madbloke" wrote in message
...

Hi,

I have an Excel sheet with a list of approx 150 documents in
alphabetical order, and column G contains the date the document was
last updated. What I need to do is put some code into a worksheet that
will pull each row through and then sort it by date. Any ideas?


--
madbloke
------------------------------------------------------------------------
madbloke's Profile:
http://www.excelforum.com/member.php...o&userid=14422
View this thread: http://www.excelforum.com/showthread...hreadid=266370



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
Sorting by date rmann11 Excel Discussion (Misc queries) 1 October 7th 09 04:37 PM
Sorting a date by month, date and then year. drosh Excel Discussion (Misc queries) 3 May 30th 08 01:57 AM
Sorting by Date Joe[_6_] New Users to Excel 3 October 8th 07 09:13 AM
sorting date " MMM-YY" (Jan-05) GEORGIA Excel Discussion (Misc queries) 8 June 23rd 05 01:30 PM
Sorting by date when the date isn't exact Kim Excel Discussion (Misc queries) 1 May 5th 05 10:44 PM


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