Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi All,
I'm sure this is simple, but I can't figure it out. I have created a user screen that I want to require input before the program will continue. I don't want the user to get lazy and hit the "X" in the upper right hand corner. If there a way to disable the "X"? Thanks in advance. Richard Mogy |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Feb 16, 11:04 am, "Rich Mogy" wrote:
Hi All, I'm sure this is simple, but I can't figure it out. I have created a user screen that I want to require input before the program will continue. I don't want the user to get lazy and hit the "X" in the upper right hand corner. If there a way to disable the "X"? Thanks in advance. Richard Mogy Morning... I've used this code....it works very well... Private Sub UserForm_QueryClose(Cancel As Integer, _ CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True MsgBox "Please use the 'Close button!" End If End Sub ' Can not close via the normal red X... |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you very much -- worked like a charm!!
"Gimp" wrote in message oups.com... On Feb 16, 11:04 am, "Rich Mogy" wrote: Hi All, I'm sure this is simple, but I can't figure it out. I have created a user screen that I want to require input before the program will continue. I don't want the user to get lazy and hit the "X" in the upper right hand corner. If there a way to disable the "X"? Thanks in advance. Richard Mogy Morning... I've used this code....it works very well... Private Sub UserForm_QueryClose(Cancel As Integer, _ CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True MsgBox "Please use the 'Close button!" End If End Sub ' Can not close via the normal red X... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a form with 2003 Question | Excel Discussion (Misc queries) | |||
Pressing Enter/Tab to go next question in a form | Setting up and Configuration of Excel | |||
Creating a form question | Excel Discussion (Misc queries) | |||
VBA Form Combo Box question. | Excel Discussion (Misc queries) | |||
VBA Form ComboBox question | Excel Worksheet Functions |