Link to home
Start Free TrialLog in
Avatar of Dale James
Dale James

asked on

Move file to another folder based on partial filename

Hello Team

Can you please advise on the following?

Using VBA code, I wish to move an excel file from one folder to another if the file name contains "Mail Count Report" in the filename.

Source Folder:  C:\Reports\
Destination Folder:  C:\ Reports\Archive\

Thank you in advance.

Dale




ASKER CERTIFIED SOLUTION
Avatar of Alex [***Alex140181***]
Alex [***Alex140181***]
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dale James
Dale James

ASKER

Thank you Alex and Subodh, exactly what I was looking for.

Both solutions work perfectly.

Many thanks.

Sincerely

Dale
You're welcome Dale! Glad we could help.
You're welcome ;-)