Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default difference application.quit & application.close

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


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default difference application.quit & application.close

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

That should make it easy.
--
Regards,
Tom Ogilvy


"Pierre via OfficeKB.com" <u13950@uwe wrote in message
news:570f479fefd39@uwe...
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


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default difference application.quit & application.close

hi Tom,

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

Tom Ogilvy wrote:
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,

[quoted text clipped - 6 lines]
Thanks,
Pierre



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default difference application.quit & application.close

the
Workbook_BeforeClose event for the workbook being closed should run.

--
Regards,
Tom Ogilvy

"Pierre via OfficeKB.com" <u13950@uwe wrote in message
news:5710c98ae66ec@uwe...
hi Tom,

If i close a workbook throug a sub, does it still run the

beforworkbookclose()
sub?
Thanks,
Pierre

Tom Ogilvy wrote:
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,

[quoted text clipped - 6 lines]
Thanks,
Pierre



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default difference application.quit & application.close

thanks Tom !
Pierre

Tom Ogilvy wrote:
the
Workbook_BeforeClose event for the workbook being closed should run.

hi Tom,

[quoted text clipped - 12 lines]
Thanks,
Pierre



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.Quit Murat Demir HEKIMOGLU Excel Programming 1 August 23rd 05 01:01 PM
Application.Quit bawahoo[_2_] Excel Programming 2 October 14th 04 08:33 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
unable to close macro using auto_close or application.quit gloria Excel Programming 1 January 14th 04 07:50 AM
application.quit will not shut off application john Excel Programming 0 January 9th 04 11:29 PM


All times are GMT +1. The time now is 09:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"