I would like to iterate through folders. I'm attempting to do so using the dir function. Here is the code I tried:
I can't understand why the first two FolderName strings that are displayed with MsbBox are "." and ".." (one period and then two periods) before it even gets to the first folder name.![]()
Please Login or Register to view this content.
Also, it not only returns the desired folder names but also the names of the Excel workbooks that are in the same main folder. How do I get the dir function to only return folder names?
Bookmarks