Reset Sub Workbook_BeforeClose
Hello everybody,
I have a question regarding the BeforeClose event:
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
MsgBox "Goodbye"
End Sub
So I click on the exit button (x top right corner) and the text message is shown, but if I answer the "Do you want to save?"-box with "Abort" and then want to exit excel again, the "Goodbye"-message is not shown anymore?
How am I able to reset the BeforeClose sub so it will fire everytime I want to exit excel via X-button?
Kind regards.