In Excel vba, how do I test what key a user just pressed? In VBA,
how do I examine what key users just pressed?How do I do the following code of
if portion?
If PGDN-key-is pressed then .......
If PGUP-key-is pressed then .......
If LEFT-key-is pressed then .......
If RIGHT-key-is pressed then .......
If UP-key-is pressed then .......
If DOWN-key-is pressed then ......