I am trying to disable the X on some userforms and have the following code:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = 0 Then Cancel = True
But when I run the code, it tells me "user-defined type no defined"
Am I placing...