Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So now that I figured out how to work underneath a user form - how can
make the box uncloseable? i.e. Everytime you try to click the 'x' - it displays cannot close -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ok,
Now you have to add "Done" Button if you want to get rid of th userform othewise it will always be there. But here is something tha will cancel the "X". The "X" will still show but when clicked it wil not close the form. Heres the code for it. Private Sub CommandButton1_Click() Unload Me End Sub Private Sub UserForm_QueryClose(Cancel As Integer, closemode A Integer) If closemode = vbFormControlMenu Then Cancel = True End If End Sub HTH Charle -- Message posted from http://www.ExcelForum.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Insert the following in your form code:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) Dim vbResponse As VbMsgBoxResult vbResponse = MsgBox("Do you want to close this form?", vbYesNo) If vbResponse = vbNo Then Cancel = True End Sub Regards, Andrew peekbo wrote in message ... So now that I figured out how to work underneath a user form - how can i make the box uncloseable? i.e. Everytime you try to click the 'x' - it displays cannot close. --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I fill a cell in a user form from a selection on same form? | Excel Discussion (Misc queries) | |||
User form | Excel Discussion (Misc queries) | |||
how can I make a form number change everytime the form is opened | Excel Worksheet Functions | |||
How to: Make user click End User License Agreement acceptance | Excel Programming | |||
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form | Excel Programming |