Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to detect when a user clicks on the reb X box up in the right top
corner of the screen so I can block it from closing. I thinkI have seen something about this some where but I just can't find it. Any help would be a help. oletrol |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gene;
Add this to the form's code. Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True End If End Sub -- Mark Rosenkrantz --- Spreadsheet Solutions Witkopeend 24 1423 SN Uithoorn, Netherlands --- E: W: www.rosenkrantz.nl "Gene Mills" wrote in message . .. I need to detect when a user clicks on the reb X box up in the right top corner of the screen so I can block it from closing. I thinkI have seen something about this some where but I just can't find it. Any help would be a help. oletrol |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
why do all excel worksheets/workbooks close when I close one? | Excel Discussion (Misc queries) | |||
Not close thead when I close excel | Excel Programming | |||
close button does not close | Excel Discussion (Misc queries) | |||
Excel shoud not close all active books when clicking close button | Excel Discussion (Misc queries) | |||
excel - Windows close button (x) should only close active workboo. | Setting up and Configuration of Excel |