Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone help with trapping the application.quit event
that is triggered by clicking on the close (X) box in the upper right title bar or when the user performs a File_Exit command and there is no Save Box genereated? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If want to control how a particular file closes, file BeforeClose event
You can add it to Workbook object: Private Sub Workbook_BeforeClose(Cancel As Boolean) .... End Sub Just go to VB editor, select the project, and click on ThisWorkbook. You should see this event in the list of events. It works in Excel 2000 and later, not sure about earlier versions. RADO "Bob J" wrote in message ... Can anyone help with trapping the application.quit event that is triggered by clicking on the close (X) box in the upper right title bar or when the user performs a File_Exit command and there is no Save Box genereated? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is no event fired for Excel itself closing. You can trap workbooks
closing with the BeforeClose Event. It sounds like you want this done at the application level, so you would need to instantiate application level events. See Chip Pearson's page on this http://www.cpearson.com/excel/appevent.htm -- Regards, Tom Ogilvy "Bob J" wrote in message ... Can anyone help with trapping the application.quit event that is triggered by clicking on the close (X) box in the upper right title bar or when the user performs a File_Exit command and there is no Save Box genereated? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() -----Original Message----- Can anyone help with trapping the application.quit event that is triggered by clicking on the close (X) box in the upper right title bar or when the user performs a File_Exit command and there is no Save Box genereated? . I believe that you are right. I am trying to treat this as an application event and still can't seem to hook the closing when there are no changes to the existing workbook. Bob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
captcure close application event | Excel Worksheet Functions | |||
before close event with condition | Excel Discussion (Misc queries) | |||
trapping charts event | Charts and Charting in Excel | |||
Excel main window close event | Excel Programming | |||
After Close Event? | Excel Programming |