Hi,
I would like to copy and create a backup of a file that is open by users.
Have tried:
Dim sSourcePath As String, sDestPath As String
sSourcePath = "C:\testfile.DBF"
sDestPath = "C:\testfile_copy.DBF"
FileCopy sSourcePath, sDestPath
Obviously I get an error as the file is open, however is there any way I can copy the file with FileCopy or any other syntax?
Would it be possible to open the file as a "copy" then save it?
Not very familiar with VBA - would really appreciate some help on this!!
Regards,
Jakob
I would like to copy and create a backup of a file that is open by users.
Have tried:
Dim sSourcePath As String, sDestPath As String
sSourcePath = "C:\testfile.DBF"
sDestPath = "C:\testfile_copy.DBF"
FileCopy sSourcePath, sDestPath
Obviously I get an error as the file is open, however is there any way I can copy the file with FileCopy or any other syntax?
Would it be possible to open the file as a "copy" then save it?
Not very familiar with VBA - would really appreciate some help on this!!
Regards,
Jakob