+ Reply to Thread
Results 1 to 4 of 4

Sorting Data by Date

  1. #1
    Registered User
    Join Date
    11-24-2008
    Location
    York
    Posts
    26

    Sorting Data by Date

    I have a Column J with Dates formated in the dd/mm/yyyy format how do I used the Selection.Sort key:= xx order:= to sort the rows that have a date in the selected columns. Where J_End in the code below is the Column I need to refer to its sorting to a point but im not sure whats wrong with it.

    All I really need it to do is group all the ones with a date (completed) and without a date (not completed) thus why im sorting it and the other stuff prioritize it.

    Please Login or Register  to view this content.
    Last edited by Dragonruler12; 12-02-2008 at 10:15 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Dragonruler12,

    If you attach your workbook you will receive an answer faster. If your are using Excel 2007 then you should save the workbook in Excel 2003 format as more people are running this version of Excel.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    11-24-2008
    Location
    York
    Posts
    26
    ok dookey as requested is the attached excel spreadsheet im using. Look at any tab with the gateway macro. It is under that and sort and then sort completed to top, you can see the column that says completed too.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-24-2008
    Location
    York
    Posts
    26
    Nevermind I solved my problem... Like I said it was in my sort I just must have done something stupid in order to sort date in a column this is what I used. And "Comp" is K8 wherever the range is you want to start. It brings dates up to the top.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1