ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disabling the standard X-Button? (https://www.excelbanter.com/excel-programming/334628-disabling-standard-x-button.html)

DHallam[_2_]

Disabling the standard X-Button?
 

Hi only a quickie!

I know you can disable the ‘red’ X–button (close button) from
userforms, but can you disable users exiting excel via the standard
‘red’ X button at the top right of the screen?

Many Thanks
Dave


--
DHallam
------------------------------------------------------------------------
DHallam's Profile: http://www.excelforum.com/member.php...o&userid=25253
View this thread: http://www.excelforum.com/showthread...hreadid=387479


DHallam[_7_]

Disabling the standard X-Button?
 

Hi,

I have followed the first code previously posted and have worked the
first one out. However I think it would be a better idea to disable
the function completely but can not figure out where to place the code
for the second example. If you could shed some light on this i would
be very grateful.

Thanx
Dave


--
DHallam
------------------------------------------------------------------------
DHallam's Profile: http://www.excelforum.com/member.php...o&userid=25253
View this thread: http://www.excelforum.com/showthread...hreadid=387479


Ron de Bruin

Disabling the standard X-Button?
 
You must run it from a normal module

But I think it is not a good idea to use it.
I now I will never use a program that do this

--
Regards Ron de Bruin
http://www.rondebruin.nl


"DHallam" wrote in message
...

Hi,

I have followed the first code previously posted and have worked the
first one out. However I think it would be a better idea to disable
the function completely but can not figure out where to place the code
for the second example. If you could shed some light on this i would
be very grateful.

Thanx
Dave


--
DHallam
------------------------------------------------------------------------
DHallam's Profile: http://www.excelforum.com/member.php...o&userid=25253
View this thread: http://www.excelforum.com/showthread...hreadid=387479





All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com