I am looping through a set of directories using a File System Object, and I want to specify an additional directory to loop through. For example, I currently have:
Sub test()
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Directory)
Set colSubfolders = objFolder.Subfolders
For Each objSubfolder In colSubfolders
' take some action
End For
End Sub
But, I want to specify an additional folder to loop through, such as:
colSubfolders = colSubfolders + "additionalpath"
For Each objSubfolder In colSubfolders ....
Alternatively, is it possible to specify multiple objects in a loop command, such as:
For Each objSubfolder in colSubfolders, "additionalpath"