Excel doesn't quit

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
 
P

pikus

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
 
J

Jos Vens

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top