renderman7
New Member
- Joined
- Oct 27, 2011
- Messages
- 10
Hi all,
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
End Sub
But when I run the code, it tells me "user-defined type no defined"
Am I placing the code in the correct spot, or am I missing something else?
Thanks
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
End Sub
But when I run the code, it tells me "user-defined type no defined"
Am I placing the code in the correct spot, or am I missing something else?
Thanks