ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel doesn't quit (https://www.excelbanter.com/excel-programming/292748-excel-doesnt-quit.html)

Jos Vens

Excel doesn't quit
 
Hi,

I was wondering why excel (sometimes) doesn't quit after the command
"application.quit"
In other circumstances (other workbooks, it works fine)

The workbook quits but Excel stays open. I have to press the close button
and then excel quits.

I have a userform that opens at startup and a button on that form has the
command "application.quit" (it unloads the form and should close excel)

Thanks
Jos Vens



pikus

Excel doesn't quit
 
Just for kicks let's confirm that application.quit is actually bein
executed. Set a breakpoint at that line and run it and see if it stop
there. - Piku

--
Message posted from http://www.ExcelForum.com


Jos Vens

Excel doesn't quit
 
Hi,

you're very right: the command did not execute. Why not? I put it in
another procedure (not in the button itself). Now I placed it right in the
button and Excel quits! Thanks a lot.

Jos


"pikus " schreef in bericht
...
Just for kicks let's confirm that application.quit is actually being
executed. Set a breakpoint at that line and run it and see if it stops
there. - Pikus


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 06:59 AM.

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