Results 1 to 1 of 1

Using VBA to open last modified folder

Threaded View

  1. #1
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    10

    Using VBA to open last modified folder

    Good morning,

    I'm trying to find a way to open the last modified folder on as server. I have a macro i use to locate the main folder on the server. The subfolders are based on each month of the year. So each month I run the macro i would need to open the folder with the previous months name. is there a way to find this with a wildcard or a way to select the last modified folder?

    The naming conventions for the folders are as follows:

    11-2014 Reports
    12-2014 Reports

    My macro to access the main folder is located below.

    Any assistance would be greatly appreciated.

    Thanks,
    Sub Macro2()
    '
    ' Macro2 Macro
    '
    ActiveWorkbook.FollowHyperlink Address:="\\\\dalfile1\Departments\External Reports\Public\NonPHI\Buckeye\Buckeye CFC", NewWindow:=True
    '
    End Sub
    Last edited by Leith Ross; 01-16-2015 at 03:31 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Automatically open the latest date modified excel file in a folder
    By arleutwyler in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2014, 01:35 PM
  2. open the newest excel file in a folder based on modified date
    By dulitul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2013, 12:52 PM
  3. Logic/Help with selecting last X modified files in a folder
    By jayinthe813 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2013, 08:26 AM
  4. Replies: 10
    Last Post: 06-20-2013, 01:47 AM
  5. [SOLVED] Macro that opens last modified file in folder
    By forfiett in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-19-2013, 09:56 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