[color green]This code will disable the QueryClose button - that little X in the top right corner of your userforms to close (look top-right corner of your broswer.)[/color]
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If Cancel <> 1 Then
Cancel = -1
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.