I have a Sub that works fine except for one thing, it only copies the first file that it comes across that matches the criteria (contains "Test" in the name). When I open up the locals window, I see that the CurrFile object does reflect each different file with "Test" in the name, but for some reason, after it copies and pastes the first one in that particular folder, it skips past the other files even though they meet the same criteria. Say for example I have a folder that contains two subfolders in it, and the first subfolder has files titled Test1.csv, Test2.csv, Test3.csv, the second folder contains Test4.csv, Test5.csv, and Test6.csv, the sub will only copy Test1.csv and Test4.csv. I can't seem to figure out why.
Bookmarks