jjfletcher
Board Regular
- Joined
- Sep 10, 2008
- Messages
- 152
Hi everyone...
I am wanting to Hide the X Close Button on Userform ???
Is there a way to modify the vbFormControlMenu in the Macro so that the X Close button is hidden or can it be colored the same as the caption area.... Something???
Is there a way to rewrite this so Cancel = True could be replaced somehow with Visible = False..... I tried this but it failed...
Best Regards,
John
I am wanting to Hide the X Close Button on Userform ???
Is there a way to modify the vbFormControlMenu in the Macro so that the X Close button is hidden or can it be colored the same as the caption area.... Something???
Code:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = vbFormControlMenu Then Cancel = True
End Sub
Is there a way to rewrite this so Cancel = True could be replaced somehow with Visible = False..... I tried this but it failed...
Best Regards,
John