I've the following code in my add-in. Strangely the code in the Workbook_Open event executes as expected, but not the Workbook_beforeClose event. May I know the reason?
thank you very much.
*********************************************
Private Sub Workbook_Open()
msgbox "hi!"
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
msgbox "bye!"
End Sub
thank you very much.
*********************************************
Private Sub Workbook_Open()
msgbox "hi!"
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
msgbox "bye!"
End Sub