Hi ALL
I have managed to make backup copies under dates and times before closing excel each time by using the following statement:
ThisWorkbook.SaveCopyAs "C:\Backup\" & "Backup_" & Format(Now, "DDMMYYYY-HHMM") & ".xls"
However, this is insufficient - I would like to eliminate the 'save dialog' before closing and I achieved this by using the following statement:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.Close False
End Sub
Now, this is not ideal as it will not save the sheet - what I would like is to save the sheet on closing without Excel asking the user to save changes. Is this possible by any chance? If so, how? Thanks
Usman
Usman
Bookmarks