M
Mathew
Good Evening All,
Cheers to Bob for helping me out last noght.
I have managed to disable the UserForm Close (X),to force exit by command button (code below) (cr JW),
and would like to know if this is available to use on the Worksheet, and the Workbook?
Private Sub UserForm_QueryClose _
(Cancel As Integer, Closemode As Integer)
If Closemode = vbFormControlMenu Then
MsgBox "Please Click The Exit Button To Close The File."
Cancel = True
End If
End Sub
Cheers
Mathew
Cheers to Bob for helping me out last noght.
I have managed to disable the UserForm Close (X),to force exit by command button (code below) (cr JW),
and would like to know if this is available to use on the Worksheet, and the Workbook?
Private Sub UserForm_QueryClose _
(Cancel As Integer, Closemode As Integer)
If Closemode = vbFormControlMenu Then
MsgBox "Please Click The Exit Button To Close The File."
Cancel = True
End If
End Sub
Cheers
Mathew