+ Reply to Thread
Results 1 to 8 of 8

How to sort by "date modified" in Available Files list within Document Recovery

  1. #1
    Registered User
    Join Date
    12-14-2008
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    73

    How to sort by "date modified" in Available Files list within Document Recovery

    It happens quite often that the computer will do an automatic update or something and will shut down. I might have Excel docs open that have not been named. But it will show a list of Available Files along the left side of my Excel screen. Now, I have a problem in that this is a really large list that has accumulated over time. Some 'available files' go back two years! I need to clean that up. But anyway, if I want to find something I just worked on recently, it could be anywhere within the list. Excel names the files Book1, Book2, etc., so, if I could find the highest number 'book,' I guess that would be the most recent. How can I sort to display that? Or, how could I sort by the last autosave date? I could easily find it that way.

    Same 'problem' exists in Word.

    I think I have Excel 2010.

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: How to sort by "date modified" in Available Files list within Document Recovery

    You need to find the folder where Excel saves "Auto-recovery" files.
    Check in: File/Options/Save.....
    then in a new sheet, place the full path in cell A1
    and run the following code.
    Note: this code works with any folder, to list all the files it contains.

    Please Login or Register  to view this content.
    Barriers are there for those who don't want to dream

  3. #3
    Registered User
    Join Date
    12-14-2008
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: How to sort by "date modified" in Available Files list within Document Recovery

    Awesome that somebody finally answered, lol, but how do I "run the code" after pasting the path into A1?

  4. #4
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: How to sort by "date modified" in Available Files list within Document Recovery

    Press Alt+F11 to open Visual Basic Editor (VBE).
    Right-click on your workbook name in the "Project-VBAProject" pane (at the top left corner of the editor window) and select Insert -> Module from the context menu
    Copy the VBA code from my first answer and paste it to the right pane of the VBA editor ("Module1" window).
    Press Alt+Q to close the Editor window and switch back to your workbook.
    Now you are ready to run the VBA code that you added as described above: press Alt+F8 to open the "Macro" dialog.
    Then select the wanted macro from the "Macro Name" list and click the "Run" button.
    Good luck

  5. #5
    Registered User
    Join Date
    12-14-2008
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: How to sort by "date modified" in Available Files list within Document Recovery

    It seems a miracle, but I did get it to run. I am not a programmer.

    This did not exactly provide what I need. Its output list was in alphabetical order and it did not give a date for each file.

    Overall, I was hoping for a way to do it within the Excel Document Recovery pane on the left of the screen.

    Thanks for your attempt.


    Quote Originally Posted by vichopalacios View Post
    Press Alt+F11 to open Visual Basic Editor (VBE).
    Right-click on your workbook name in the "Project-VBAProject" pane (at the top left corner of the editor window) and select Insert -> Module from the context menu
    Copy the VBA code from my first answer and paste it to the right pane of the VBA editor ("Module1" window).
    Press Alt+Q to close the Editor window and switch back to your workbook.
    Now you are ready to run the VBA code that you added as described above: press Alt+F8 to open the "Macro" dialog.
    Then select the wanted macro from the "Macro Name" list and click the "Run" button.
    Good luck

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: How to sort by "date modified" in Available Files list within Document Recovery

    You can't but just open the location in Windows explorer, you can then sort them however you want

  7. #7
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: How to sort by "date modified" in Available Files list within Document Recovery

    hi @livemusic

    As Kyle123 says, you can't work directly on the recovery pane....
    but Excel is magic, and it can help you.

    First replace the old code I gave you by this new one, this has a third column with the creation date for every file, so you can sort the table as you wish

    Please Login or Register  to view this content.
    Now open again the VBE window as explained before,
    double click on the sheet name you are using
    this action opens a new window,
    copy the following code and paste it in this window.

    Please Login or Register  to view this content.
    Now you can run the "Mostrar_Archivos" macro as explained before, you get the new table with dates
    and here comes the magic:

    you choose a file, and doble click on its name ( on column B) .... the file opens

    I hope this helps in your task
    Vicho

  8. #8
    Registered User
    Join Date
    09-10-2021
    Location
    Toronto, Canada
    MS-Off Ver
    Microsoft 365
    Posts
    1

    Re: How to sort by "date modified" in Available Files list within Document Recovery

    That was Magic - Thank you very much Vicho!!
    I know this is an old thread, (found on google) but still very much appreciated. I had no idea what I was doing, however followed your instructions and found exactly what I was looking for!!
    Thanks again!
    Rich

+ 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. How to get a Static Date for Modified "PAID" STATUS CHANGE
    By Danymanson in forum Excel General
    Replies: 4
    Last Post: 05-12-2016, 06:35 AM
  2. [SOLVED] Macro To Look at list of files in column "A" and show their last Saved Date in Column "B"
    By drknot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2015, 09:48 AM
  3. Insert "Last modified Date"?
    By ndmalam in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2008, 03:54 AM
  4. Code to capture recalculated cells - "Date last modified" utility
    By Tristan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2008, 11:58 AM
  5. Retrieve "Last Modified Date" from external file!!!
    By benedums in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2005, 11:16 AM
  6. EXCEL - is there a way to insert "date modified" into
    By Scuda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2005, 04:06 PM

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