ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Close workbook/excel (https://www.excelbanter.com/excel-programming/327935-close-workbook-excel.html)

Mike

Close workbook/excel
 
How can I close excel using a macro ?

Bob Flanagan

Close workbook/excel
 
Application.Close

Bob Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Mike" wrote in message
...
How can I close excel using a macro ?




keepITcool

Close workbook/excel
 
i think that's a typo
s/b application.QUIT

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Bob Flanagan wrote :

Application.Close

Bob Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Mike" wrote in message
...
How can I close excel using a macro ?


Patrick Molloy[_2_]

Close workbook/excel
 
if workbooks are open, and you don't want Excel prompt to save them then use

Application.DisplayAlerts = False
Application.Quit

"keepITcool" wrote:

i think that's a typo
s/b application.QUIT

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Bob Flanagan wrote :

Application.Close

Bob Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Mike" wrote in message
...
How can I close excel using a macro ?




All times are GMT +1. The time now is 07:14 PM.

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