I want copy target macro to new location:
Dim strDes As String
strDes = "D:\" & ActiveWorkbook.Name
FileCopy ActiveWorkbook.FullName, strDes
it occur error
permission denied
How can copy an Excel file that is open?
I want copy target macro to new location:
Dim strDes As String
strDes = "D:\" & ActiveWorkbook.Name
FileCopy ActiveWorkbook.FullName, strDes
it occur error
permission denied
How can copy an Excel file that is open?
You may copy the opened file using
Scripting.FileSystemObject