How to pass a form event parameter to a function without using [Event Procedure]?

Joined
Apr 30, 2012
Messages
1
Reaction score
0
Hello]

I'm not sure whether this is a form coding question or VBA modules question.

I want to use a generic function =FormKeyDown() on form's key down event, instead of using event procedure:

Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
, I want to be able to retrieve KeyCode in

Code:
Function FormKeyDown()
.
End Function

Is it possible? Thanks very much in advance, Michael.
 
Back
Top