VB help on File Name and placement

Fooser

Board Regular
Joined
Sep 16, 2005
Messages
152
Maybe someone can help me out with this vb script.
I'm trying to look in a folder and find files, which fall into certain categries and place them in the correct folders.

Default location of folder containing all the files.
U:\__Finance\_RRS_CHECK_TEMPLATE\READY\

File Formats.
Name_NUMBER-mmddyy.xls

What I'm trying to focus on is the "mmddyy" part of the name.
I want to take the "mmyy" and place every file with the same "mmyy" in a corresponding "mmyy" folder.
I was thinking about trying a For Next loop to do this, but any suggestions would be helpful.

Oh ya I want the folders to be automatically made if the "mmyy" exists.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Now that I think about it more, It's probably not a excel question sorry about that. I was going to try and make a macro that will do it through excel if it's possible.
 
Upvote 0

Forum statistics

Threads
1,203,387
Messages
6,055,122
Members
444,763
Latest member
Jaapaap

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top