DarbyBrown
New Member
- Joined
- Jan 22, 2016
- Messages
- 31
- Office Version
- 365
- Platform
- Windows
I have a macro that is supposed to Close the open Workbook, and shutdown Excel. It closes the Workbook OK, but does not shutdown Excel.
The code is below, what is wrong?
I am running Excel 2010, on Windows 10 Pro.
Code for Savit
Sub Savit()
'
' Savit Macro
' Saves and closes the workbook
'
' Keyboard Shortcut: Ctrl+s
'
Application.DisplayAlerts = False
With ThisWorkbook
.Save
.Close
End With
Application.DisplayAlerts = True
Application.Quit
End Sub
The code is below, what is wrong?
I am running Excel 2010, on Windows 10 Pro.
Code for Savit
Sub Savit()
'
' Savit Macro
' Saves and closes the workbook
'
' Keyboard Shortcut: Ctrl+s
'
Application.DisplayAlerts = False
With ThisWorkbook
.Save
.Close
End With
Application.DisplayAlerts = True
Application.Quit
End Sub