![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 97
|
Does anyone have experience or know how to disable shortcut keys for an excel workbook. I would like to disable such keys as ctrl+s, ctrl+o, as well as alt+f8 (displays macros shortcut menu), and any other shortcut keys that intitalize shortcut menus.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Haven't done this myself, but I know people like Juan Pablo G. have suggested this in the past.
Using VBA you can use the "OnKey" command to disable certain key combos, exmaple taken from VBA help: This example disables the SHIFT+CTRL+RIGHT ARROW key sequence. HTH |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 97
|
Thanks a bunch Mark. I guess it's not hard to find, but of the top of your head, what's the equivalent to "ALT" in vb code?
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
I believe ALT is %, off the top of my head.
Cheers |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 97
|
Thanks again Mark, and I'm sorry about this, but I've been looking and can't seem to find it. What would the "F#" keys be. "F18" for example?
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Posts: 67
|
Hey, charlie I work at Domtar as well
I am in Cornwall Mill Anyways I got this from excel help. I hope this is what you need Key Code BACKSPACE {BACKSPACE} or {BS} BREAK {BREAK} CAPS LOCK {CAPSLOCK} CLEAR {CLEAR} DELETE or DEL {DELETE} or {DEL} DOWN ARROW {DOWN} END {END} ENTER (numeric keypad) {ENTER} ENTER ~ (tilde) ESC {ESCAPE} or {ESC} HELP {HELP} HOME {HOME} INS {INSERT} LEFT ARROW {LEFT} NUM LOCK {NUMLOCK} PAGE DOWN {PGDN} PAGE UP {PGUP} RETURN {RETURN} RIGHT ARROW {RIGHT} SCROLL LOCK {SCROLLLOCK} TAB {TAB} UP ARROW {UP} F1 through F15 {F1} through {F15} You can also specify keys combined with SHIFT and/or CTRL and/or ALT. To specify a key combined with another key or keys, use the following table. To combine keys with Precede the key code by SHIFT + (plus sign) CTRL ^ (caret) ALT % (percent sign) |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|