Searching through Subfolders

M

Mark

Hello

Wondering how to do a search for .htm files that are all under one
main folder, but also through a bunch of subfolders under the main
folder. The code I have so far is:

myPath = "C:\MySites\"
workfile = Dir(myPath & "*.htm")

Using this code I can only return files that are in MySites and not
the subfolders within that folder. Is there a way to do this or do I
have to name each folder within MySites?

Thanks very much
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top