+ Reply to Thread
Results 1 to 7 of 7

Auto Sort When Date Is Entered

  1. #1
    Registered User
    Join Date
    10-13-2006
    Posts
    5

    Auto Sort When Date Is Entered

    I am looking for a way to auto sort the info in column A based on the numerical account number. The auto sort also should move the rest of the info in the row along with column a.
    I want this auto sort to happen once a new entry has been entered with all the information in columns A -L.

    Basically the goal is someone with very little knowledge about excel or computers in general can enter information in all 12 columns and then the table will auto sort itself based on the account number.

    I believe this has to be done with a macro but i know nothing about them. help please.
    Attached Files Attached Files
    Last edited by suehatesyou; 10-22-2010 at 08:30 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Auto Sort When Date Is Entered

    Still learning Xl'07, just used the macro recorder to get the sort code then placed it in the worksheet module, right click the sheet tab and select view code, copy and paste this code there.
    Please Login or Register  to view this content.
    When there is a change in column L the code will run

  3. #3
    Registered User
    Join Date
    10-13-2006
    Posts
    5

    Re: Auto Sort When Date Is Entered

    Ok it did work. Then i closed it, and now it is not working. The code is still there. but when i enter data in column L nothing happens
    Last edited by suehatesyou; 10-22-2010 at 08:31 PM.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Auto Sort When Date Is Entered

    You probably need to save it as a macro enabled workbook

  5. #5
    Registered User
    Join Date
    10-13-2006
    Posts
    5

    Re: Auto Sort When Date Is Entered

    No, it was saved as macro enabled. Well now its working again. Weird. Thanks!

  6. #6
    Registered User
    Join Date
    09-05-2013
    Location
    Poole
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Auto Sort When Date Is Entered

    Hi

    I am trying to do something similar, although this is my first time with macros. I need the sheet to automatically sort by date once it is entered in the final column. I have conditional formatting throughout the sheet.

    I tried using the macro above and amending it to suit (it was effectively a guess) but it did not work.

    The example is here... Tenders Due List.xlsm

    Any help would be great

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,620

    Re: Auto Sort When Date Is Entered

    Lauratb

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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