键码常数 值 描述vbKeyLButton 1 鼠标左键vbKeyRButton 2 鼠标右键vbKeyCancel 3 CANCEL 键vbKeyMButton 4 鼠标中键vbKeyBack 8 BACKSPACE 键vbKeyTab 9 TAB 键vbKeyClear 12 CLEAR 键vbKeyReturn 13 ENTER 键vbKeyShift 16 SHIFT 键vbKeyControl 17 CTRL 键vbKeyMenu 18 菜单键vbKeyPause 19 PAUSE 键vbKeyCapital 20 CAPS LOCK 键vbKeyEscape 27 ESC 键vbKeySpace 32 SPACEBAR 键vbKeyPageUp 33 PAGEUP 键vbKeyPageDown 34 PAGEDOWN 键vbKeyEnd 35 END 键vbKeyHome 36 HOME 键vbKeyLeft 37 LEFT ARROW 键vbKeyUp 38 UP ARROW 键vbKeyRight 39 RIGHT ARROW 键vbKeyDown 40 DOWN ARROW 键vbKeySelect 41 Select 键vbKeyPrint 42 PRINT SCREEN 键vbKeyExecute 43 EXECUTE 键vbKeySnapshot 44 SNAP SHOT 键vbKeyInser 45 INS 键vbKeyDelete 46 DEL 键vbKeyHelp 47 HELP 键vbKeyNumlock 144 NUM LOCK 键A 键到Z键与其ASCII码的相应值'A' 到'Z' 是一致的键码常数 值 描述vbKeyA 65 A 键vbKeyB 66 B 键vbKeyC 67 C 键vbKeyD 68 D 键vbKeyE 69 E 键vbKeyF 70 F 键vbKeyG 71 G 键vbKeyH 72 H 键vbKeyI 73 I 键vbKeyJ 74 J 键vbKeyK 75 K 键vbKeyL 76 L 键vbKeyM 77 M 键vbKeyN 78 N 键vbKeyO 79 O 键vbKeyP 80 P 键vbKeyQ 81 Q 键vbKeyR 82 R 键vbKeyS 83 S 键vbKeyT 84 T 键vbKeyU 85 U 键vbKeyV 86 V 键vbKeyW 87 W 键vbKeyX 88 X 键vbKeyY 89 Y 键vbKeyZ 90 Z 键0 键到9 键与其ASCII码的相应值 '0' 到'9' 是一致的。键码常数 值 描述vbKey0 48 0 键vbKey1 49 1 键vbKey2 50 2 键vbKey3 51 3 键vbKey4 52 4 键vbKey5 53 5 键vbKey6 54 6 键vbKey7 55 7 键vbKey8 56 8 键vbKey9 57 9 键数字小键盘上的键键码常数值 描述vbKeyNumpad0 96 0 键vbKeyNumpad1 97 1 键vbKeyNumpad2 98 2 键vbKeyNumpad3 99 3 键vbKeyNumpad4 100 4 键vbKeyNumpad5 101 5 键vbKeyNumpad6 102 6 键vbKeyNumpad7 103 7 键vbKeyNumpad8 104 8 键vbKeyNumpad9 105 9 键vbKeyMultiply 106 乘号 (*) 键vbKeyAdd 107 加号 (+) 键vbKeySeparator 108 ENTER 键(在数字小键盘上)vbKeySubtract 109 减号 (-) 键vbKeyDecimal 110 小数点 (.) 键vbKeyDivide 111 除号 (/) 键功能键键码常数 值 描述vbKeyF1 112 F1 键vbKeyF2 113 F2 键vbKeyF3 114 F3 键vbKeyF4 115 F4 键vbKeyF5 116 F5 键vbKeyF6 117 F6 键vbKeyF7 118 F7 键vbKeyF8 119 F8 键vbKeyF9 120 F9 键vbKeyF10 121 F10 键vbKeyF11 122 F11 键vbKeyF12 123 F12 键vbKeyF13 124 F13 键vbKeyF14 125 F14 键vbKeyF15 126 F15 键vbKeyF16 127 F16 键