ShortcutConstants

Shortcut-key identifiers for menu items, used by the menu editor and the runtime to bind a menu command to a keyboard combination. Members are auto-numbered: vbShortcutNone is 0, vbShortcutCtrlA is 1, and so on.

No shortcut

Constant Value Description
vbShortcutNone 0 No shortcut is assigned.

Ctrl + letter

Constant Value Description
vbShortcutCtrlAvbShortcutCtrlZ 1 – 26 Ctrl + A through Ctrl + Z.

Function keys

Constant Value Description
vbShortcutF1vbShortcutF9 27 – 35 F1 through F9.
vbShortcutF11 36 F11.
vbShortcutF12 37 F12.

Shift + function

Constant Value Description
vbShortcutShiftF1vbShortcutShiftF9 38 – 46 Shift + F1 through Shift + F9.
vbShortcutShiftF11 47 Shift + F11.
vbShortcutShiftF12 48 Shift + F12.

Ctrl + function

Constant Value Description
vbShortcutCtrlF1vbShortcutCtrlF9 49 – 57 Ctrl + F1 through Ctrl + F9.
vbShortcutCtrlF11 58 Ctrl + F11.
vbShortcutCtrlF12 59 Ctrl + F12.

Shift + Ctrl + function

Constant Value Description
vbShortcutShiftCtrlF1vbShortcutShiftCtrlF9 60 – 68 Shift + Ctrl + F1 through Shift + Ctrl + F9.
vbShortcutShiftCtrlF11 69 Shift + Ctrl + F11.
vbShortcutShiftCtrlF12 70 Shift + Ctrl + F12.

Editing keys

Constant Value Description
vbShortcutCtrlInsert 71 Ctrl + Insert.
vbShortcutShiftInsert 72 Shift + Insert.
vbShortcutDelete 73 Delete.
vbShortcutShiftDelete 74 Shift + Delete.
vbShortcutAltBackspace 75 Alt + Backspace.