Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi All,
I'm using an auto save feature to save a document prior to the user exiting.
Occasionally, Excel pops with its message of
Is there anyway to suppress &/or to disable this popup?
To add to the code that I have started?
Many Thanks,
Pinaceous
I'm using an auto save feature to save a document prior to the user exiting.
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
On Error GoTo Error1
MsgBox "AUTOSAVED !!"
ActiveWorkbook.Save
Application.AutoRecover.Enabled = False
Application.Quit
End
Application.DisplayAlerts = False
Exit Sub
Error1:
Application.AutoRecover.Enabled = False
Application.Quit
End
Application.DisplayAlerts = False
Exit Sub
End Sub
Occasionally, Excel pops with its message of
.Microsoft Excel has stopped working
Is there anyway to suppress &/or to disable this popup?
To add to the code that I have started?
Many Thanks,
Pinaceous
Last edited: