Hello Randy,
The following code placed in the "Workbook" module should do the job for you:-
Public myNotice As Boolean
Private Sub Workbook_BeforeClose(Cancel As Boolean)
If myNotice = True Then Exit Sub
If ActiveSheet.Name = "Log-In" Then Exit Sub
Application.DisplayAlerts = False
Cancel = True
Beep
MsgBox "YOU MUST USE EXIT BUTTON!", vbExclamation, "WARNING!"
End Sub
It should leave your "Log-In" sheet to close as per normal. The other two sheets will be blocked from the normal "close" procedure with your Exit button taking over from there.
I hope that this helps.
Regards,
vcoolio.
Bookmarks