Added: Apr 29, 2002
Snippet uploaded by: snippet
Written By: unknown
Demo: Sorry, no demo
How to capture keys pressed to use as keyboard shortcuts.
Highlight all by clicking in box
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
'Capture Alt key
AltDown = (Shift And vbAltMask) > 0
'Alt + A = Shortcut for AddNew
If AltDown And KeyCode = vbKeyA Then ' A = Add
'See Key code constants in help file for other key codes
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.