If a user presses F5 a want my program to run a function.... How do I do that??
Printable View
If a user presses F5 a want my program to run a function.... How do I do that??
set the KeyPreview property of your form to true,
then:
private Sub Form_KeyUp(KeyCode as Integer, Shift as Integer)
If KeyCode = vbKeyF5 then
MsgBox "F5!"
End If
End Sub