+ Reply to Thread
Results 1 to 2 of 2

RecursiveFileSearch filePattern fails when "_" in filename

  1. #1
    Registered User
    Join Date
    07-08-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    RecursiveFileSearch filePattern fails when "_" in filename

    Looking for some help with my macro that loops through subfolders and brings back data from the workbooks that match my filename pattern, because the name changes each month.

    It works seemlessly if the pattern is "[0-9][0-9][0-9][0-9][0-9][0-9] Filename"

    But fails if "[0-9][0-9][0-9][0-9]_[0-9][0-9] Filename"

    any ideas on how to handle the underscore?

    Thanks heaps
    GWS


    Fullcode

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    07-08-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: RecursiveFileSearch filePattern fails when "_" in filename

    Any ideas welcome please!

+ 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. Replies: 9
    Last Post: 03-09-2021, 11:54 PM
  2. [SOLVED] compatibility mode works, .xlsm fails with "out of memory"
    By FORTRANguru in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2014, 02:19 PM
  3. Replies: 2
    Last Post: 08-28-2012, 08:56 AM
  4. If "String Variable" = "" then: (Fails)
    By vin1 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-17-2012, 07:11 AM
  5. [SOLVED] Find method fails in Excel 2003 ("Subscript out of range")
    By Guy Jara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2006, 12:10 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