I'm severly handicapped in excel-ese.
I've created a form and all I want it to do is say, "are you sure you want to close this form?" when someone clicks the "x".
Or I guess I could do something like below a saw on another post here:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = 0 Then
Cancel = True
End If
End Sub
but i'm confused as to where this code gets placed in order for it to execute when someone closes the form - there's no "on close" event or anything like i'm used to in access.
Seek not outside yourself; heaven is within.
I've created a form and all I want it to do is say, "are you sure you want to close this form?" when someone clicks the "x".
Or I guess I could do something like below a saw on another post here:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = 0 Then
Cancel = True
End If
End Sub
but i'm confused as to where this code gets placed in order for it to execute when someone closes the form - there's no "on close" event or anything like i'm used to in access.
Seek not outside yourself; heaven is within.