D
Don
Hi There,
I have the following code to close down Excel assigned to a button on a
Userform:
Private Sub CmdBn3_Click()
On Error Resume Next
Application.ScreenUpdating = False
For n = 2 To 24
Sheets(n).Visible = xlVeryHidden
Next
Application.ScreenUpdating = True
ThisWorkbook.Save
Application.Quit
End Sub
I would like to disable the prompt message that appears when the code gets
to "Application.Quit"? The file, along with all changes that have been made,
has already been saved by the "Thisworkbook.Save" command.
TIA
Don
I have the following code to close down Excel assigned to a button on a
Userform:
Private Sub CmdBn3_Click()
On Error Resume Next
Application.ScreenUpdating = False
For n = 2 To 24
Sheets(n).Visible = xlVeryHidden
Next
Application.ScreenUpdating = True
ThisWorkbook.Save
Application.Quit
End Sub
I would like to disable the prompt message that appears when the code gets
to "Application.Quit"? The file, along with all changes that have been made,
has already been saved by the "Thisworkbook.Save" command.
TIA
Don