hi, i have multipule text box's on a form, and then in a macro this code
i wish to send the keyascii to this macro sub procedure from the textbox's onkeypress event, how is this done in VBA ? thank you
Code:
Dim ch As String
ch = Chr$(KeyAscii)
If Not (ch >= "0" And ch <= "9") Then
' Cancel the character.
KeyAscii = 0
End If
i wish to send the keyascii to this macro sub procedure from the textbox's onkeypress event, how is this done in VBA ? thank you