ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Close and Exit Excel (https://www.excelbanter.com/excel-programming/276373-close-exit-excel.html)

MikeWaldron

Close and Exit Excel
 
Jeff,

Try setting the object to nothing in order to destory it.
Something along the order of :

Set myxl = CreateObject("Excel.Application")
' your code here - save and close then
myxl.Application.Quit
Set myxl = Nothing

I think the should do it
Regards,
Mike

-----Original Message-----
I don't know if there is a statement in VBA to close and
exit Excel. I am able to close my workbook using
the 'close' statement, but I leaves excel running. I
would like a complete exit of excel and have the machine
return to the desktop.
.



All times are GMT +1. The time now is 08:50 AM.

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