I can't seem to get either KeyPress or KeyDown to work on a userform in Excel 2000. Is that a known problem?
Here is my code:
Thanks...
Here is my code:
Code:
Private Sub UserForm_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = vbKeyPageUp Then GotoPreviousRecord
If KeyCode = vbKeyPageDown Then GotoNextRecord
End Sub
Private Sub UserForm_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyCode = vbKeyPageUp Then GotoPreviousRecord
If KeyCode = vbKeyPageDown Then GotoNextRecord
End Sub
Thanks...