Results 1 to 34 of 34

Using VBA to Open a File Name that changes slightly

Threaded View

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2003
    Posts
    47

    Using VBA to Open a File Name that changes slightly

    Hi All,

    I want to use vba to open a file where the name changes slightly each week it comes in. Let's say the file name is f:/Folder A 05212009

    I can do this to open it:
    Workbooks.Open Filename:=":/Folder A 05212009"
    But, next week when the file name is Folder A 05282009, it won't open. Is there any way to write the code so that it picks up this pattern and can open it each week?

    I greatly appreciate any help you can give me!
    Last edited by souljive99; 05-26-2009 at 05:47 PM. Reason: added code tag

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