Keycode Constants in VBA
Keycode Constants in VBA
The following constants can be used anywhere in your code in place of the actual values:
The A key through the Z key are the same as the ASCII equivalents A – Z:
The 0 key through 9 key are the same as their ASCII equivalents 0 – 9: