M
Marcello do Guzman
I have used the the following VBE code in the 'This Workbook' module
'This disables the ALT+F8, ALT+F11 and CONTROL+BREAK shortcut keys
Private Sub Workbook_Open()
Application.OnKey "%{F11}", ""
Application.OnKey "%{F8}", ""
Application.OnKey "^{BREAK}", ""
End Sub
'This enables the above shortcut keys
Private Sub App_WorkbookBeforeClose(ByVal Wb As Workbook, _
Cancel As Boolean)
TestEnableOnKey
End Sub
However, the CONTROL + BREAK shortcut function does NOT work. I am
still get the box that allows you to RUN, DEBUG or CANCEL. Is there
anyway to get this to work?
Need the VBE code and where exactly it should be placed.
Thanks in advance,
Marcello
email: (e-mail address removed)
'This disables the ALT+F8, ALT+F11 and CONTROL+BREAK shortcut keys
Private Sub Workbook_Open()
Application.OnKey "%{F11}", ""
Application.OnKey "%{F8}", ""
Application.OnKey "^{BREAK}", ""
End Sub
'This enables the above shortcut keys
Private Sub App_WorkbookBeforeClose(ByVal Wb As Workbook, _
Cancel As Boolean)
TestEnableOnKey
End Sub
However, the CONTROL + BREAK shortcut function does NOT work. I am
still get the box that allows you to RUN, DEBUG or CANCEL. Is there
anyway to get this to work?
Need the VBE code and where exactly it should be placed.
Thanks in advance,
Marcello
email: (e-mail address removed)