+ Reply to Thread
Results 1 to 3 of 3

Macro to Open Most Recent File

  1. #1
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Ventura, united States
    MS-Off Ver
    Excel 2010
    Posts
    346

    Macro to Open Most Recent File

    I have a series of files that are saved with just the date and time in the same folder. Is it possible to have a macro look in the folder and open the most recent file?

    So for example. Look in:

    M:\My Folder\\Template REPORTS

    See the following files:

    1-22 0833.xlsx
    1-22 0845.xlsx
    1-22 0901.xlsx

    and then open:

    1-22 0901.xlsx

  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,258

    Re: Macro to Open Most Recent File

    Hello Jiptastic,

    This should work for you.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Ventura, united States
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Macro to Open Most Recent File

    With a little tweaking, this worked great. Thanks.

+ 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. [SOLVED] Open an xlsx with most recent date in filename, run my data pulling macro, then move file
    By alanwu07 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2013, 05:24 AM
  2. Macro to open most recent file with a particular filename string
    By naitnait in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2010, 01:47 PM
  3. Open most recent file
    By papfles in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-23-2010, 07:40 AM
  4. Replies: 1
    Last Post: 08-22-2006, 08:30 PM
  5. [SOLVED] macro code to open most recent file.
    By in forum Excel General
    Replies: 4
    Last Post: 06-09-2005, 10:05 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