Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a 'disclaimer' form in my application. I would like to: - if anything other then the "OK" button is clicked (the 'X') there should be a message: "please read the disclaimer or quit (form with ok (return to 'disclaimer form' or quit (quit application) Does anybody have the code for this please? Thanks, Pierre -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200511/1 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You might block closing via the "x" like this:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = 0 Then MsgBox "Please click OK or Cancel" Cancel = True End If End Sub -- Jim "Pierre via OfficeKB.com" <u13950@uwe wrote in message news:56b9d4a46da0d@uwe... | Hi, | | I have a 'disclaimer' form in my application. | I would like to: | | - if anything other then the "OK" button is clicked (the 'X') there should | be a message: | | "please read the disclaimer or quit (form with ok (return to 'disclaimer | form' or quit (quit application) | | Does anybody have the code for this please? | Thanks, | Pierre | | | -- | Message posted via OfficeKB.com | http://www.officekb.com/Uwe/Forums.a...mming/200511/1 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Jim.
Works fine for me ! Pierre Jim Rech wrote: You might block closing via the "x" like this: Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = 0 Then MsgBox "Please click OK or Cancel" Cancel = True End If End Sub | Hi, | [quoted text clipped - 10 lines] | Thanks, | Pierre -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200511/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Close User Form | Excel Discussion (Misc queries) | |||
Form Close Button | Excel Programming | |||
Close form instead of hide | Excel Programming | |||
Help! Animated gif-image in form does not show animation when form loaded | Excel Programming | |||
Close Form with VBA | Excel Programming |