#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Form question

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Form question

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Form question

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a form with 2003 Question Irishimp23 Excel Discussion (Misc queries) 0 March 14th 06 04:26 PM
Pressing Enter/Tab to go next question in a form Rachel Setting up and Configuration of Excel 4 October 3rd 05 11:16 PM
Creating a form question [email protected] Excel Discussion (Misc queries) 0 September 11th 05 10:48 PM
VBA Form Combo Box question. WTG Excel Discussion (Misc queries) 3 February 26th 05 04:28 PM
VBA Form ComboBox question WTG Excel Worksheet Functions 3 February 26th 05 04:27 PM


All times are GMT +1. The time now is 05:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"