I'm using this to loop through each file in a directory which I specify:
But I want to be able to do a "For Each (Folder instead of File) so that I can then get inside each sub folder in the one parent folder that I've specified. How do I accomplish this so that I can do For Each Folder, then call the For Each File procedure?
Thanks
Code:
Dim FSO As FileSystemObject
Set FSO = New FileSystemObject
Dim FSOFolder As Folder
Dim FSOFile As File
Set FSOFolder = FSO.GetFolder(mstrFolderSpec)
For Each FSOFile In FSOFolder.Files
'set file attributes, copy files, whatever
Next
Thanks