![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Mar 2002
Posts: 79
|
Is it possible to stop a user shutting a userform with the close button.
Thx Roy |
|
|
|
|
|
#2 |
|
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Yeah, just take the code out and watch their confused little face
|
|
|
|
|
|
#3 |
|
Join Date: Mar 2002
Posts: 79
|
I want to disable the close button if it is possible.
Thx Roy The Boy |
|
|
|
|
|
#4 |
|
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Do you want it to do something else instead, or just stay on the page and do nothing when it's pressed?
|
|
|
|
|
|
#5 |
|
Join Date: Mar 2002
Posts: 79
|
I want it to stay on the sheet and remain active and tell the user that they cannot close it down by pressing the close button
Thx Roy alias Reg |
|
|
|
|
|
#6 |
|
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Mmmkay....
The code you want is: Private Sub CommandButton1_Click() MsgBox ("You cannot close this form by pressing the close button") End Sub |
|
|
|
|
|
#7 |
|
Join Date: Mar 2002
Posts: 60
|
Hmmm.........
Intreging! I must know, why would you want the user to be stuck on a page only getting told that they cant go anywhere? Dan. |
|
|
|
|
|
#8 |
|
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Are you into torture RoyInUK2000? I bet you've got a rack in your cellar...
|
|
|
|
|
|
#9 |
|
Join Date: Mar 2002
Posts: 79
|
The user wouldn't get stuck. The userform has 8 commandbuttons on it which move them on, so basically they must press one of the command buttons and not the close button. I only want to stop a user pressing the close button ( The cross in the corner ). Any other command button is fine
Come on someone out there must know the answer Thax Roy |
|
|
|
|
|
#10 |
|
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Oh THAT close button!! I thought you meant you'd drawn one on there and didn't want people pressing it. I thought that was a bit strange....
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|