Actually, I made a mistake. Use the On Unload event because it is the one that can be cancelled.
If MsgBox("Exit",vbYesNo) = vbYes then
'exit
Else
Cancel = True
End If
"The Key, The Whole Key, and Nothing But The Key, So Help Me Codd!"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.