Results 1 to 16 of 16

Using an Expression with FSO Get folder

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Using an Expression with FSO Get folder

    Hi all,

    In stead of doing the following

    
          For Each Folder In FSO.GetFolder(DirPath).SubFolders  '& SubFolders)
            If Folder.Name Like Filter Then
              MsgBox Folder.Name
    I would like to do something like:
    For Each Folder In FSO.GetFolder(DirPath).SubFolders  '& SubFolders)
            If Folder.Name Like ([*41B*] |[*41C*][*29X*][*8HW*])   Filter Then
              MsgBox Folder.Name
    Is there anyway to get a folder search for a variable instead a constant?


    Thanks,

    BDB
    Last edited by bdb1974; 10-22-2010 at 05:39 PM.

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