Hi, first time poster, great info on this site!
I need a macro to search for a string in a filename that contains a date and move it to a subfolder for that date.
Issue: 6 teams each have a folder with around 5,000 spreadsheets. Filenames are in the following format: LastName, FirstInitial. MM-DD-YYYY- Rev -000.xlsm. The filepath is long, so I’ll represent as M:\A\B\D\E\F\G\Team 1\Staff Summaries. The range of dates in the filename is from 2013 to present.
Goal: I need to organize the files to a folder by year, with monthly subfolders.
I have a macro cobbled together from this and other sites to create the folder and subfolders in the Staff Summaries folder so that I’ll have a folder named 2013 with monthly subfolders, and so on, through 2017. It creates the folder and subfolders in a user defined file path.
Can someone create a macro or modify the above to move each file to the appropriate subfolder based on the date that’s in the filename? For example, the file named Smith, J. 03-15-2015- Rev -001.xlsm residing in M:\A\B\D\E\F\G\Team 1\Staff Summaries needs to be moved to M:\A\B\D\E\F\G\Team 1\Staff Summaries\2015\Mar.Please Login or Register to view this content.
Thanks, Dave
Bookmarks