Hi
How to assign hotkey to any command
How to assign hotkey to any command
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) KeyPreview = True If KeyCodeConstants = vbKeyF1 Then Command1_Click If KeyCodeConstants = vbKeyF2 Then Command2_Click If KeyCodeConstants = vbKeyF3 Then Command3_Click If KeyCodeConstants = vbKeyF4 Then Command4_Click If KeyCodeConstants = vbKeyF5 Then Command5_Click If KeyCodeConstants = vbKeyF6 Then Command6_Click End Sub
Comment