N.b. has attended:
Excel VBA Intro Intermediate course
Userform in VBA
How do you turn off the close button on a UserForm?
RE: Userform in VBA
Hi N.b.
If you place the following code in the form's QueryClose event it will prevent the close button being used to close the form
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub
Hope this helps
Caros