Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Folks
I know you can use Application.OnKey "^c","" to disable the Ctrl C copy shortcut. I'd like to be able to disable the Ctrl Break that interrupts code execution. I've tried the following line of code in the Workbook Open event, but it doesn't seem to work, although no errors occur. Application.OnKey "^{BREAK}","" Many thanks in Advance |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look at application.Cancelkey perhaps that will work for you.
-- Regards, Tom Ogilvy "Libby" wrote in message ... Hi Folks I know you can use Application.OnKey "^c","" to disable the Ctrl C copy shortcut. I'd like to be able to disable the Ctrl Break that interrupts code execution. I've tried the following line of code in the Workbook Open event, but it doesn't seem to work, although no errors occur. Application.OnKey "^{BREAK}","" Many thanks in Advance |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Take a look at:
Application.EnableCancelKey in VBA's help. Note the warning. Libby wrote: Hi Folks I know you can use Application.OnKey "^c","" to disable the Ctrl C copy shortcut. I'd like to be able to disable the Ctrl Break that interrupts code execution. I've tried the following line of code in the Workbook Open event, but it doesn't seem to work, although no errors occur. Application.OnKey "^{BREAK}","" Many thanks in Advance -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As Dave said, it is actually EnableCancelKey - Bad brain to hand connection.
:( -- Regards, Tom Ogilvy "Tom Ogilvy" wrote in message ... Look at application.Cancelkey perhaps that will work for you. -- Regards, Tom Ogilvy "Libby" wrote in message ... Hi Folks I know you can use Application.OnKey "^c","" to disable the Ctrl C copy shortcut. I'd like to be able to disable the Ctrl Break that interrupts code execution. I've tried the following line of code in the Workbook Open event, but it doesn't seem to work, although no errors occur. Application.OnKey "^{BREAK}","" Many thanks in Advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
onkey method | Excel Discussion (Misc queries) | |||
onkey help | Excel Programming | |||
onkey | Excel Programming | |||
Onkey Method | Excel Programming | |||
Onkey | Excel Programming |