I've been running this code for four months daily every two hours.
This morning I had a "permission denied" error. Once I had the user close the file, the VBA ran.
Is there a way to copy a file even though someone has it in use?
Public Sub SaveCL()
Dim SourcePath As String
Dim DestinationPath As String
SourcePath = "\\CCX.ABC.com\Reporting\CL.xlsx"
DestinationPath = "C:\Users\Public\Sources\CL1.xlsx"
FileCopy SourcePath, DestinationPath
End Sub