Good afternoon,
I have a script that moves all the files (.xlsx format) located in one folder to another folder. I eventually want to have code that moves all the files from 40 different folders into 1 folder. Basically, I have 40 or so folders that continually have new files put into them, and I want all of these files to be moved, through a macro, into 1 file. Below, I've posted the VBA code that I'm currently using to move files from one folder to another folder. Is there a way that I can loop the below script so that it repeats the process for a list of folders?
The above script moves every file in "UserAnalyticsReports2" to the folder "MasterUserAnalytics". Can I loop this code so that it repeats this process for a number of folders? Or will I have just repaste the above code for each individual folder?
Bookmarks