Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Whenever I goto the end of my Combobox (last listnumber) with my Keys, I want the control to goto listindex -1. In another way when I tab into a ComboBox and use my keys to go through the values, I want the control to start all over whenever I reach the last value
Another control I could use is whenever I use my mouse to go through the values, I want the top value to change with the (with mouse) highlighted value |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Add this code to your userform
Private Sub ComboBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) With Me.ComboBox1 Select Case KeyCode Case 40 ' : 'down arrow If .ListIndex = .ListCount - 1 Then .ListIndex = -1 End If End Select End With End Sub -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "akyhne" wrote in message ... Whenever I goto the end of my Combobox (last listnumber) with my Keys, I want the control to goto listindex -1. In another way when I tab into a ComboBox and use my keys to go through the values, I want the control to start all over whenever I reach the last value. Another control I could use is whenever I use my mouse to go through the values, I want the top value to change with the (with mouse) highlighted value |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find loop doesn't loop | Excel Discussion (Misc queries) | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
COMBOBOX | New Users to Excel | |||
Worksheet_Change - loop within a loop | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |