I need to move a file with a date-based name to another folder.
File structure:
Source: \ network_location \ folder \ Filename_09-11-2012.txt Purpose: C: \ Dump \ Filename.txt
The source file is always 1 day. I want to rename the file when copying it.
The code I'm trying to use is:
Sub Copy_And_Rename() Name "\\network_location\folder\Filename_"+Month(Now())+"-"+Day(Now()-1)+"-"+Year(Now())+".txt" As "C:\Dump\Filename.txt" End Sub
thanks
Brad
source share