+ Reply to Thread
Results 1 to 2 of 2

Need to open all files of a certain name using wildcard for folder for month

  1. #1
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Shropshire, England
    MS-Off Ver
    Excel 2007 /10 /13
    Posts
    118

    Need to open all files of a certain name using wildcard for folder for month

    Hi

    I want a macro that will open a certain named file in each of 12 folders labeled with the month.

    e.g C:\folder\January\MI.xlsx and C:\folder\February\MI.xlsx, etc, etc

    I have the following code, which I tried to modify to get this to work, but it seems to be missing something

    Please Login or Register  to view this content.
    Can anyone see what I am missing here please?

    thanks

  2. #2
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Need to open all files of a certain name using wildcard for folder for month

    The method you are using above is more for iterating through a folder however "theDate" is not a valid function - perhaps you mean "Date". If I understand you question there is just one file you want to open however it is present in 12 different folders (Jan-Feb). So to do what you are asking
    Please Login or Register  to view this content.
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated?

+ 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