hotkeys

you also need to click on the form and change the key preview to true.



Private Sub Form_Load()
KeyPreview = True
If hotkey = vbKeyF1 Then Command1_Click
End Sub