Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007: Ctrl+PgUp or Ctrl+PgDn with Protected Sheets | Excel Discussion (Misc queries) | |||
Using <PgDn changes active cell. | New Users to Excel | |||
Ctrl+pgup pgdn can't jump worksheets | Excel Worksheet Functions | |||
Userform inside another userform | Excel Programming | |||
Userform | Excel Programming |