gilligan5000
New Member
- Joined
- Mar 31, 2014
- Messages
- 2
Hi guys, I usually just search like crazy and can find a solution on here that's close enough that I can make it work...not this time.
I have three source folders with 1,000's of files in each.
Each file in these folders starts with a 6 digit number.
I would like to take each file, read the 6 digit number from it, and copy the file to a new folder that also starts with that number (already created).
In essence a bulk file move that searches source file names, and destination folder names and aligns the two...
Any VBA experts out there I would greatly appreciate the help! I really don't feel like moving these manually
Source Path Layout:
\SAP\Preventive Maintenance\ (folder has 1,000 files starting with a 6 digit number)
\SAP\Calibration\ (folder has 1,000 files starting with a 6 digit number)
\SAP\Impact Assessments\ (folder has 1,000 files starting with a 6 digit number)
I would like to combine all of these into corresponding folders here:
\SAP\Equipment Files\ (1,000 folders, one for each number)
I have three source folders with 1,000's of files in each.
Each file in these folders starts with a 6 digit number.
I would like to take each file, read the 6 digit number from it, and copy the file to a new folder that also starts with that number (already created).
In essence a bulk file move that searches source file names, and destination folder names and aligns the two...
Any VBA experts out there I would greatly appreciate the help! I really don't feel like moving these manually

Source Path Layout:
\SAP\Preventive Maintenance\ (folder has 1,000 files starting with a 6 digit number)
\SAP\Calibration\ (folder has 1,000 files starting with a 6 digit number)
\SAP\Impact Assessments\ (folder has 1,000 files starting with a 6 digit number)
I would like to combine all of these into corresponding folders here:
\SAP\Equipment Files\ (1,000 folders, one for each number)
Last edited: