Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I usually divert the click to the Cancel button, since obviously the
user wants out. Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = 0 Then cmdCancel_Click End Sub - Jon ------- Jon Peltier, Microsoft Excel MVP Peltier Technical Services http://PeltierTech.com/Excel/Charts/ _______ Bob Umlas wrote: Not as far as I know, but you CAN disable its functionality: Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = 0 Then Cancel = True End Sub Bob Umlas Excel MVP "Marta" wrote in message ... Hi, Can I prevent the appearence of the "X" symbol (for closing the window) on a user form via a macro?. I'll be happy to hear any answers. Thanks in advance whoever creates a solution. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Type a symbol useing shortcut keys rather the insert a symbol | Excel Discussion (Misc queries) | |||
The appearence of a fraction | Excel Discussion (Misc queries) | |||
I wanted Excel's appearence changed to Olive green | New Users to Excel | |||
Sort by only one appearence | Excel Discussion (Misc queries) | |||
Database Form appearence | Excel Programming |