View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rafael Guerreiro Osorio Rafael Guerreiro Osorio is offline
external usenet poster
 
Posts: 27
Default How to find specific subfolders

I need to make a macro that searches for subfolders which names start with
four digit numbers and count them. To clarify, I have a folder structure like:

MainFolder
CountryFolder
1989
more subfolders
2001-02
more subfolders
Other country folder
1976
....

Problem is I know how to search *files* with specific criteria using
filesearch, but not how to search for *subfolders* that match criteria, in
this case, the 4 first characters of the subfolder name are numeric. I always
get confused with searchscopes and scopefolders. Can someone shed some light
on this?

Thanks in advance,

Rafael