I am not sure of doing this. But one simple idea is u can use the ASCII key values of the functional keys and then you can manipulate the action which u want to do. Cheers...
: I am not sure of doing this. But one simple idea is u can use the : ASCII key values of the functional keys and then you can manipulate : the action which u want to do. Cheers... :
Hai, Here you have to add a KeyUp Event for your Form. Now compare the KeyCode with a constant in vbKeyCodeConstants.
Example
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyF1 Then MsgBox "F1 pressed" End If End Sub
Comments
: ASCII key values of the functional keys and then you can manipulate
: the action which u want to do. Cheers...
:
Hai, Here you have to add a KeyUp Event for your Form. Now compare the KeyCode with a constant in vbKeyCodeConstants.
Example
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF1 Then
MsgBox "F1 pressed"
End If
End Sub
Example End
Use object browser for more vbKeyCodeConstants.