Advertisement
YasserKhalil2019

T4721_Create Backup SaveCopyAs Method

Mar 29th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. https://excel-egy.com/forum/t4721
  2. ---------------------------------
  3.  
  4. Sub Create_Backup_SaveCopyAs_Method()
  5. Dim sPath As String
  6.  
  7. sPath = "F:\"
  8.  
  9. Application.DisplayAlerts = False
  10. With ThisWorkbook
  11. .SaveCopyAs Filename:=sPath & Format(Date, "DD-MM-YYYY") & "_" & .Name
  12. End With
  13. Application.DisplayAlerts = True
  14. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement