Hello
I'm so confuesd . this code works for me , but when in send by email to another employee to work . it gives error access path in this line
ws.Copy
Sub copysheet()
Dim ws As Worksheet, StrPath As String
Application.DisplayAlerts = False
StrPath = ActiveWorkbook.Path & "\"
Set ws = sheet2
ws.Copy
ActiveWorkbook.SaveAs Filename:= _
StrPath & " trm " & Format(Date, "MM-yyyy") & ".xlsx", FileFormat:=51
ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub
I don't think because of version almost very soon in my PC 2019 but the others employee 2020
can anybody guess where is exactly the problem,please?