difference application.quit & application.close

  • Thread starter Thread starter Pierre via OfficeKB.com
  • Start date Start date
P

Pierre via OfficeKB.com

Hi,

just a small vba question for you...

What is the difference between application.quit and application.close

and when do i use quit and when close?

Thanks,
Pierre
 
The biggest difference is that there is no Application.Close command. You
quit the application (Excel) and close workbooks.

That should make it easy.
 
hi Tom,

If i close a workbook throug a sub, does it still run the beforworkbookclose()
sub?
Thanks,
Pierre

Tom said:
The biggest difference is that there is no Application.Close command. You
quit the application (Excel) and close workbooks.

That should make it easy.
[quoted text clipped - 6 lines]
Thanks,
Pierre
 
the
Workbook_BeforeClose event for the workbook being closed should run.

--
Regards,
Tom Ogilvy

Pierre via OfficeKB.com said:
hi Tom,

If i close a workbook throug a sub, does it still run the beforworkbookclose()
sub?
Thanks,
Pierre

Tom said:
The biggest difference is that there is no Application.Close command. You
quit the application (Excel) and close workbooks.

That should make it easy.
[quoted text clipped - 6 lines]
Thanks,
Pierre
 

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

Similar Threads

Re: VBA Runs After Application.Quit 11
VBA - Closing Outlook 1
Prompt for saving a saved workbook 1
Application.Quit 7
Application.Close 2
Application.Quit 1
XP SP3 fail to start 2
Application.Quit out of Do loop 2

Back
Top