Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Turning off Close Button

How do I turn-off the X "Close button" on a form so that it looks like a
dialog form
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 421
Default Turning off Close Button

Hi Ayo,

To hide the Userform's X icon, try
downloading Stephen Bullen's
FormFun.zip file at:

Stephen Bullen's Excel Page
http://www.oaltd.co.uk/Excel/Default.htm

To disable the icon, in the Userform
module try something like:

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub
'<<=========

However, preferable would be the
following version wh9ich redirects
the icon to the Userform's cbExit
button: this allows any code linked
to the close button to run, without
annoying the typical user, who
would expect thw icon to close the
form.

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Call cbExit_Click
End If
End Sub
'<<=========



---
Regards.
Norman


"Ayo" wrote in message
...
How do I turn-off the X "Close button" on a form so that it looks like a
dialog form


  #3   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Turning off Close Button

I don't want to disable the icon, I want to hide it completely so that the
userform looks like a splash screen.

"Norman Jones" wrote:

Hi Ayo,

To hide the Userform's X icon, try
downloading Stephen Bullen's
FormFun.zip file at:

Stephen Bullen's Excel Page
http://www.oaltd.co.uk/Excel/Default.htm

To disable the icon, in the Userform
module try something like:

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub
'<<=========

However, preferable would be the
following version wh9ich redirects
the icon to the Userform's cbExit
button: this allows any code linked
to the close button to run, without
annoying the typical user, who
would expect thw icon to close the
form.

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Call cbExit_Click
End If
End Sub
'<<=========



---
Regards.
Norman


"Ayo" wrote in message
...
How do I turn-off the X "Close button" on a form so that it looks like a
dialog form


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 421
Default Turning off Close Button

Hi Ayo,

Try Stephen Bullen's:

NoCloseButton.zip
http://www.oaltd.co.uk/Excel/Default.htm





---
Regards.
Norman


"Ayo" wrote in message
...
I don't want to disable the icon, I want to hide it completely so that the
userform looks like a splash screen.

"Norman Jones" wrote:

Hi Ayo,

To hide the Userform's X icon, try
downloading Stephen Bullen's
FormFun.zip file at:

Stephen Bullen's Excel Page
http://www.oaltd.co.uk/Excel/Default.htm

To disable the icon, in the Userform
module try something like:

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub
'<<=========

However, preferable would be the
following version wh9ich redirects
the icon to the Userform's cbExit
button: this allows any code linked
to the close button to run, without
annoying the typical user, who
would expect thw icon to close the
form.

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Call cbExit_Click
End If
End Sub
'<<=========



---
Regards.
Norman


"Ayo" wrote in message
...
How do I turn-off the X "Close button" on a form so that it looks like
a
dialog form



  #5   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Turning off Close Button

Thanks. I will try it.

"Norman Jones" wrote:

Hi Ayo,

Try Stephen Bullen's:

NoCloseButton.zip
http://www.oaltd.co.uk/Excel/Default.htm





---
Regards.
Norman


"Ayo" wrote in message
...
I don't want to disable the icon, I want to hide it completely so that the
userform looks like a splash screen.

"Norman Jones" wrote:

Hi Ayo,

To hide the Userform's X icon, try
downloading Stephen Bullen's
FormFun.zip file at:

Stephen Bullen's Excel Page
http://www.oaltd.co.uk/Excel/Default.htm

To disable the icon, in the Userform
module try something like:

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub
'<<=========

However, preferable would be the
following version wh9ich redirects
the icon to the Userform's cbExit
button: this allows any code linked
to the close button to run, without
annoying the typical user, who
would expect thw icon to close the
form.

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Call cbExit_Click
End If
End Sub
'<<=========



---
Regards.
Norman


"Ayo" wrote in message
...
How do I turn-off the X "Close button" on a form so that it looks like
a
dialog form




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 230
Default Turning off Close Button

Norman,

Don't think Stephen has that working for v2007, because I just tried it.

Rob

"Norman Jones" wrote in message
...
Hi Ayo,

Try Stephen Bullen's:

NoCloseButton.zip
http://www.oaltd.co.uk/Excel/Default.htm





---
Regards.
Norman


"Ayo" wrote in message
...
I don't want to disable the icon, I want to hide it completely so that
the
userform looks like a splash screen.

"Norman Jones" wrote:

Hi Ayo,

To hide the Userform's X icon, try
downloading Stephen Bullen's
FormFun.zip file at:

Stephen Bullen's Excel Page
http://www.oaltd.co.uk/Excel/Default.htm

To disable the icon, in the Userform
module try something like:

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub
'<<=========

However, preferable would be the
following version wh9ich redirects
the icon to the Userform's cbExit
button: this allows any code linked
to the close button to run, without
annoying the typical user, who
would expect thw icon to close the
form.

'========
Private Sub UserForm_QueryClose( _
Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Call cbExit_Click
End If
End Sub
'<<=========



---
Regards.
Norman


"Ayo" wrote in message
...
How do I turn-off the X "Close button" on a form so that it looks like
a
dialog form




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 421
Default Turning off Close Button

Hi Rob,

You are correct that the NoCloseButton
utility does not work with Excel 2007 (or,
at least in my case, with the Excel 2007 /
Windows Vista combination) .

In this connection, you may note that
Stephen shows the last update of the utility
as 25 November 1998.




---
Regards.
Norman


"RobN" wrote in message
...
Norman,

Don't think Stephen has that working for v2007, because I just tried it.

Rob


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 230
Default Turning off Close Button

Wow! 2007 and Vista. I didn't think such brave people existed :)

Rob

"Norman Jones" wrote in message
...
Hi Rob,

You are correct that the NoCloseButton
utility does not work with Excel 2007 (or,
at least in my case, with the Excel 2007 /
Windows Vista combination) .

In this connection, you may note that
Stephen shows the last update of the utility
as 25 November 1998.




---
Regards.
Norman


"RobN" wrote in message
...
Norman,

Don't think Stephen has that working for v2007, because I just tried it.

Rob




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
Disable Close Button dan Excel Discussion (Misc queries) 5 September 22nd 06 07:39 PM
Userform + close button Chip Smith Excel Discussion (Misc queries) 2 April 1st 06 09:35 AM
close button does not close goplayoutside Excel Discussion (Misc queries) 1 October 11th 05 03:42 PM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM


All times are GMT +1. The time now is 11:41 AM.

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

About Us

"It's about Microsoft Excel"