+ Reply to Thread
Results 1 to 3 of 3

Opening the most recent file saved to a folder

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Rochester, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    80

    Opening the most recent file saved to a folder

    Hi Folks,

    I am trying to use the code below to open the most recently saved file in my downloads folder, however it is returning an error that it can't find it. I believe this is because the code is including the file extension ".xls" in the name search.. I am wondering if someone can confirm this and help augment the code so that it drops the file extension from the name?

    Thanks in advance for all posts

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Opening the most recent file saved to a folder

    Hi there,

    Try the following code and see if it does what you need:

    Please Login or Register  to view this content.
    The most significant change from your original code is in the highlighted line.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Opening the most recent file saved to a folder

    Hi again,

    Many thanks for the Reputation increase

    Regards,

    Greg M

+ 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] File saved w macro not showing up in Recent Documents
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2013, 09:07 PM
  2. Open a file in the most recent folder
    By primaldeity in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2013, 07:34 PM
  3. Macro For opening Most recent file in folder
    By dtaganovic16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2012, 12:00 PM
  4. Searching for file by most recent saved time.
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2010, 10:31 AM
  5. Searching for most recent file saved.
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-31-2010, 03:13 PM
  6. How to open the most recent file in a folder
    By Mr. Structure in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-30-2010, 09:42 AM
  7. How to Open Most Recent File in a Folder
    By 1100shadowman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-16-2009, 08:30 PM
  8. UDF for opening most recent file added
    By jaden41 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2005, 07:05 AM

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