Close Buttom

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
In a userform there are a Red Cross to close the form
Can i disable this ?

Regards
alvin
 
I use the userform queryclose to disable 'Red Cross'

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub
 
Thanks
Alvin


"GerardV" skrev:
I use the userform queryclose to disable 'Red Cross'

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top