Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable or hide the close window icon 'X' in the corner of a userform
any ideas how to achieve that? I'm sure I've seen it somewhere, but can't
find it in past posts. thanks tim |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable or hide the close window icon 'X' in the corner of a userform
This stops the window being closed and shows a msg James Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = 0 Then Cancel = True MsgBox "Please use the Exit button", vbCritical End If End Sub -----Original Message----- any ideas how to achieve that? I'm sure I've seen it somewhere, but can't find it in past posts. thanks tim . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable or hide the close window icon 'X' in the corner of a userform
Thank you. but to explain a little further, i was trying to remove the
button altogether (or disable it, so clicking has no effect), later code in the module will close it automatically thanks tim "James" wrote in message ... This stops the window being closed and shows a msg James Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = 0 Then Cancel = True MsgBox "Please use the Exit button", vbCritical End If End Sub -----Original Message----- any ideas how to achieve that? I'm sure I've seen it somewhere, but can't find it in past posts. thanks tim . |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable or hide the close window icon 'X' in the corner of a userform
James' method is easiest, but if you want to remove the X, post back.
or go to Stephen Bullen's site and down load formfun.zip from his Excel page http://www.bmsltd.ie (see menu on the left side of page) -- Regards, Tom Ogilvy "Tim" wrote in message ... any ideas how to achieve that? I'm sure I've seen it somewhere, but can't find it in past posts. thanks tim |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable or hide the close window icon 'X' in the corner of a userform
thank you, i got the desired effect using the QueryClose event of the button
(don't know if its the best way though). the button is still there, but clicking now has no apparent effect. regards, tim "Tom Ogilvy" wrote in message ... James' method is easiest, but if you want to remove the X, post back. or go to Stephen Bullen's site and down load formfun.zip from his Excel page http://www.bmsltd.ie (see menu on the left side of page) -- Regards, Tom Ogilvy "Tim" wrote in message ... any ideas how to achieve that? I'm sure I've seen it somewhere, but can't find it in past posts. thanks tim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't get to bottom right corner of window to resize? I figured it | Excel Discussion (Misc queries) | |||
When I close Excel the icon moves | Excel Discussion (Misc queries) | |||
Remove Close Icon ? | Excel Programming | |||
Removing the little Excel icon in left corner | Excel Programming | |||
Disable close button of Modeless Userform | Excel Programming |