A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

captcure close application event



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2009, 03:47 PM posted to microsoft.public.excel.worksheet.functions
suru
external usenet poster
 
Posts: 2
Default captcure close application event

Hi,
I am new to VBA.

Can anyone tell me how to capture Close Application (i.e. close all
workbooks)
event in Microsoft Excel using VBA?


I know that, when i say close all, Microsoft Excel, fires close
workbook for each workbook.
But i need to know, if the user has clicked "close application",
since i need to do data clean up on that event.


thnx,
suraj
  #2  
Old June 15th, 2009, 05:34 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default captcure close application event

suraj,

There is no application level exit event. To see what events are available, visit Chip's page on
events:

http://www.cpearson.com/excel/Events.aspx

"Another method to determine what events are available is to create an empty class module, and enter
the following code:

Dim WithEvents App As Application

snip

Then, select App in the left side dropdown at the top of the code window. All the events for the
selected item in the left dropdown will be listed in the right dropdown."

HTH,
Bernie
MS Excel MVP


"suru" wrote in message
...
Hi,
I am new to VBA.

Can anyone tell me how to capture Close Application (i.e. close all
workbooks)
event in Microsoft Excel using VBA?


I know that, when i say close all, Microsoft Excel, fires close
workbook for each workbook.
But i need to know, if the user has clicked "close application",
since i need to do data clean up on that event.


thnx,
suraj



  #3  
Old June 17th, 2009, 07:10 AM posted to microsoft.public.excel.worksheet.functions
suru
external usenet poster
 
Posts: 2
Default captcure close application event

thnx for the inputs
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:06 AM.


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