Im using this piece of code to move a csv file from one folder to another after processing. The problem is that if a csv file already exists with that name it does not overwrite this. can anyone sugges the easiest workaround for this.
'Move CSV File to chosen folder
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
fs.MoveFile "C:\ftp\CSV\*.csv", "C:\processed"
Exit Sub
TIA
Mark
'Move CSV File to chosen folder
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
fs.MoveFile "C:\ftp\CSV\*.csv", "C:\processed"
Exit Sub
TIA
Mark