Excel doesn't quit

  • Thread starter Thread starter Jos Vens
  • Start date Start date
J

Jos Vens

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
 
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
 
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
 
Back
Top