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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top