+ Reply to Thread
Results 1 to 4 of 4

How to sort all my excel/word files by original date created or saved?

  1. #1
    Registered User
    Join Date
    03-05-2004
    Posts
    31

    How to sort all my excel/word files by original date created or saved?

    I have few hundreds of word/excel files whose date modified and date created got mysteriously changed to the current date and time. The files were created in the last 10 years and I'm really breaking my head to figure how to sort them. Never followed a file naming or folder structure convention and now I'm paying the price for it. All I was doing was rearranging files and folders between drives and folders and now I'm stuck with this problem. I did the rearrangement so that I could setup dropbox and skydrive cloud sync.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to sort all my excel/word files by original date created or saved?

    Hi, slicksilver79,

    have you looked up the BuiltinDocumentProperties to find out about the CreationDate and the DateLastSaved? If the information you need is found there you may use VBA to rename the files accordingly by something like
    Please Login or Register  to view this content.
    HTH,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    03-05-2004
    Posts
    31

    Re: How to sort all my excel/word files by original date created or saved?

    Quote Originally Posted by HaHoBe View Post
    Hi, slicksilver79,

    have you looked up the BuiltinDocumentProperties to find out about the CreationDate and the DateLastSaved? If the information you need is found there you may use VBA to rename the files accordingly by something like
    Please Login or Register  to view this content.
    HTH,
    Holger
    Yes! It has the correction information. What's the best way to rename 100s of files using VBA(I'm a code newbie)? Thanks

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to sort all my excel/word files by original date created or saved?

    Hi, slicksilver79,

    please do not quote whole posts.

    Best way? Loop through a folder and work with every file. Maybe this can give you an idea (please test on a small amount of files in an extra folder before running on all files):
    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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