Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform close button
hi all, is it possible to hide thew close button on a form ? If so how
does one do it ? Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform close button
Yes. See FormFun at
http://www.oaltd.co.uk/Excel/Default.htm Best wishes dr Nosferatu "Les Stout" skrev i melding ... hi all, is it possible to hide thew close button on a form ? If so how does one do it ? Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform close button
If you want to prevent a user from closing the userform via the "x" just use
sub UserForm_QueryClose: Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = 0 Then Cancel = True End Sub CloseMode is 0 when a userform is manually closed and 1 when closed through code like this: Private Sub CommandButton1_Click() Unload UserForm1 End Sub -- Jim "Les Stout" wrote in message ... | hi all, is it possible to hide thew close button on a form ? If so how | does one do it ? | | Les Stout | | *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
HOW to close a userform using a button | Excel Discussion (Misc queries) | |||
Userform close button | Excel Discussion (Misc queries) | |||
Userform + close button | Excel Discussion (Misc queries) | |||
Userform Close button | Excel Programming | |||
Close Button on Userform | Excel Programming |