ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Disable Hotkeys (https://www.excelbanter.com/excel-discussion-misc-queries/57077-disable-hotkeys.html)

freekrill

Disable Hotkeys
 

Hi,

I am looking for a way of disabling the close hotkey, ctrl + w.

In a previous post, it was suggested running the macro:

Application.onkey "^w", ""

would work, and it does, as long as you are not in Edit mode.

In edit mode, ctrl + w still gives you the close prompt. Is there any
way of disabling it completely?

Thanks for any help

free


--
freekrill
------------------------------------------------------------------------
freekrill's Profile: http://www.excelforum.com/member.php...fo&userid=7561
View this thread: http://www.excelforum.com/showthread...hreadid=487859


Dave Peterson

Disable Hotkeys
 
I've never seen a meaningful macro run when in edit mode. So I don't think
you're going to find a macro solution.



freekrill wrote:

Hi,

I am looking for a way of disabling the close hotkey, ctrl + w.

In a previous post, it was suggested running the macro:

Application.onkey "^w", ""

would work, and it does, as long as you are not in Edit mode.

In edit mode, ctrl + w still gives you the close prompt. Is there any
way of disabling it completely?

Thanks for any help

free

--
freekrill
------------------------------------------------------------------------
freekrill's Profile: http://www.excelforum.com/member.php...fo&userid=7561
View this thread: http://www.excelforum.com/showthread...hreadid=487859


--

Dave Peterson


All times are GMT +1. The time now is 07:12 AM.

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