Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following below displays a message when a workbook is closed. However if
the user hits the cancel button when prompted with the options prior to close, this code still creates the message. This is becuase this event is triggered before the user is presented with the close options. How do you get around this. Is there another event that I can use to verify if in fact the file has been closed. Private Sub Workbook_BeforeClose(Cancel As Boolean) If Cancel = False Then Msgbox("Book closed") End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work | Setting up and Configuration of Excel | |||
Workbook_BeforeClose Event and Cancel Option | Excel Programming | |||
Workbook_BeforeClose: Cancel doesn't work | Excel Programming | |||
Workbook_BeforeClose - Cancel not working | Excel Programming | |||
Detecting a cancel on Workbook_BeforeClose event? | Excel Programming |