korhan
Board Regular
- Joined
- Nov 6, 2009
- Messages
- 215
Hello forum rats,
I have certain event that is linked to an ActiveX combo box.
I would like to send down arrow key up or down event to this event handler every 10 seconds so that it increases the item index in the combobox and I can just sit back and watch 'till it reaches to the very last item in the combobox.
Is there a way to this?
I have certain event that is linked to an ActiveX combo box.
Code:
Public Sub ComboBox2_KeyUp(ByVal keyCode As MSForms.ReturnInteger, ByVal shift As Integer)
' Check if the user is pressing up or down arrow key, if yes run the macro
If keyCode = 38 Or keyCode = 40 Or keyCode = 13 Then
Call ComboBox2_Click
End If
End Sub
I would like to send down arrow key up or down event to this event handler every 10 seconds so that it increases the item index in the combobox and I can just sit back and watch 'till it reaches to the very last item in the combobox.
Is there a way to this?
Last edited: