alexdurc09
New Member
- Joined
- Sep 21, 2018
- Messages
- 17
Hello all,
I have the below code to automatically save my spreadsheetwhen it is closed down so that people can’t close without saving. However, whenit is closed down, the spreadsheet reopens its self automatically. The only wayto close it down is to exit Excel completely and all spread sheets which are open.
Thanks,
Alex
Private Sub Workbook_BeforeClose(Cancel As Boolean)
'ThisWorkbook Modulecode!
ActiveWorkbook.Save
End Sub
I have the below code to automatically save my spreadsheetwhen it is closed down so that people can’t close without saving. However, whenit is closed down, the spreadsheet reopens its self automatically. The only wayto close it down is to exit Excel completely and all spread sheets which are open.
Thanks,
Alex
Private Sub Workbook_BeforeClose(Cancel As Boolean)
'ThisWorkbook Modulecode!
ActiveWorkbook.Save
End Sub