PgDn in UserForm
Try this (untested):
Private Sub UserForm_KeyDown(ByVal KeyCode As _
MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 34 Then bnNext_Click
End Sub
You will also need to put the code in the KeyDown event of any control that
is capable of receiving focus, including bn_Next.
--
Vasant
"Oskar" wrote in message
...
I would like to use PgDn in a userform (to execute sub bnNext_Click). Is
this trivial? possible?
Apparently onkey doesn't work in userforms and accelerator keys can only
be letters. Am I right?
Oskar
|