Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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
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
HOW to close a userform using a button CC Excel Discussion (Misc queries) 2 October 10th 08 02:06 PM
Userform close button AOU Excel Discussion (Misc queries) 4 September 21st 07 05:56 PM
Userform + close button Chip Smith Excel Discussion (Misc queries) 2 April 1st 06 09:35 AM
Userform Close button Juan Excel Programming 5 May 6th 04 10:15 PM
Close Button on Userform Jean-Paul Viel Excel Programming 0 September 20th 03 06:44 PM


All times are GMT +1. The time now is 04:19 PM.

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"