Create a Backup of a Current Workbook
This is one of the most useful macros which can help you to save
a backup file of your current workbook. It will save a backup file in the same
directory where your current file is saved. And, it will also add the
current date with the name of the file.
Sub FileBackUp()
ThisWorkbook.SaveCopyAs Filename:=ThisWorkbook.Path & _
"" & Format(Date, "mm-dd-yy") &
" " & _
ThisWorkbook.name
End Sub
No comments:
Post a Comment