difference application.quit & application.close

  • Thread starter Pierre via OfficeKB.com
  • 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
 
T

Tom Ogilvy

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

That should make it easy.
 
P

Pierre via OfficeKB.com

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
 
T

Tom Ogilvy

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

Top