thegameoflife
Programmer
I can cut and past the file below manually, but when I try doing it in code I get run-time error ‘70’. Is there some way around this?
Run-time error ‘70’ Permission denied…..
Code:
Function Copy_Amarillo()
Dim Filepath1, Filepath2 As String
Dim FS As Object
Filepath1 = "M:\Hmopmt2.xls"
Filepath2 = "C:\Recovery"
Set FS = CreateObject("Scripting.FileSystemObject")
FS.CopyFile Filepath1, Filepath2
End Function
Run-time error ‘70’ Permission denied…..