+ Reply to Thread
Results 1 to 21 of 21

VBA Auto Sort The Closing Date Column in multiple worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    VBA Auto Sort The Closing Date Column in multiple worksheets

    Could you add a VPA code to my worksheet to automatically sort the closing date in Ascending order 15 seconds after entries are made.
    Please set up the code to run on the four worksheets (closing date column only)below.

    1st Qtr. Sales
    2nd Qtr. Sales
    3rd Qtr. Sales
    4th Qtr. Sales

    Briefly describe to me how to do this in the future.

    Thanks,
    Chad

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Hi cwcpoppa

    How are entries made to Closing Date?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Jaslake

    People manually enter date, like 1/1/2014.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Hi cwcpoppa

    How do your Quarters run? December to November?

  5. #5
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    December 2013 to November 2014, yes.

    Thanks,

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Hi cwcpoppa

    Are the number of Rows for each Month FIXED at 31?

    Is there a reason to do the Sort after 15 seconds rather than immediately upon change?
    Last edited by jaslake; 02-03-2014 at 11:31 AM.

  7. #7
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Jaslake,

    The number of rows are fixed at 31.

    For the sorting. If its easier to do immediately then lets do it.
    I need this code pretty soon.

    Thanks,
    Chad

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Hi Chad

    Try the Code in the attached...form layout may be an issue...

  9. #9
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    jaslake

    Code works great.
    Could you please add this code to the enclosed spreadsheet.
    It has a better format.

    Thanks,
    Chad

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Hi Chad

    Tell you what...add the Named Ranges (see the File I attached). Duplicate the Named Ranges in your new File then reattach the File. I'll transport the Code to your new File.

    I don't want to have all the fun.

  11. #11
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    ok how exactly do I do this.

  12. #12
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    is this a copy and paste in your VBA worksheet to my VBA worksheet?

  13. #13
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Thanks for all the time and work you put into this.

    Ok I believe I understand now. I was to go to formulas name manager and enter in the ranges from my spreadsheet and then you could enter the final sort code in module 1.


    Chad

  14. #14
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Jaslake,

    One issue, when I save the file and reopen it it gives me an error
    excel found unreadable content, if you want to recover unreadable contents of this workbook.

    This is what I am getting any idea why this happens?

    Removed Records: Sorting from /xl/worksheets/sheet3.xml part

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
    <logFileName>error074000_01.xml</logFileName>
    <summary>Errors were detected in file 'C:\Users\ckcwc744\Dropbox\Excel retail project 1.23.14\Final\Team tracker with financials -chad final2.xlsm'</summary>
    - <removedRecords summary="Following is a list of removed records:">
    <removedRecord>Removed Records: Sorting from /xl/worksheets/sheet3.xml part</removedRecord>
    </removedRecords>
    </recoveryLog>

  15. #15
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Hi Chad

    Is it the same File from Post #14? I have no issues with it...

  16. #16
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Jaslake

    Ok, two questions

    1) How would I remove the ascending code from the four quarterly tabs and just put it on the summary quarter tab.

    2) I want to transfer closed dates from four quarterly tabs to the summary table a different way

    In qtr 1, in the december tab, if I type in 3/1/14 as the closing date I want it to show up in the March table within the summary tab.
    This should be set up for all four quarter sheets.

    Let me know what you need me to do to assist you in this code.

    thanks,
    Chad

  17. #17
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Hi Chad

    Something that bothers me about your Sheet(s) layout...will Closing Date be the last filled cell in each of the Quarterly Tabs?

  18. #18
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    in the summary table.

  19. #19
    Registered User
    Join Date
    01-25-2014
    Location
    bear,de
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: VBA Auto Sort The Closing Date Column in multiple worksheets

    Yes. The last filled cell will be the closing date.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Auto hide & protect worksheets before closing
    By magnum206 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2014, 08:32 PM
  2. how can i sort multiple worksheets by date format dd.mm.yy?
    By surfing69 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-30-2013, 01:35 PM
  3. [SOLVED] seeking VBA help to auto sort worksheet based on date in column A
    By leopardhawk in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-29-2013, 12:11 PM
  4. Replies: 0
    Last Post: 11-19-2009, 11:48 AM
  5. auto sort entire worksheet by one date column
    By kalisun in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2007, 02:12 PM

Tags for this Thread

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