ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Closing Excel Completely (https://www.excelbanter.com/excel-programming/271347-re-closing-excel-completely.html)

John Wilson

Closing Excel Completely
 
David,

Application.Quit
should do the trick.

If using the Activeworkbook.Save, you can use this
in place of the ActiveWorkbook.Close

John

David W wrote:

How do I get excel to close all the way out
I got this code to almost to do it but it don't

Private Sub CommandButton1_Click()
MsgBox "Please Call In"
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub




All times are GMT +1. The time now is 06:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com