M
Malbo
I am trying to use a listbox click event to run VBA code which selects an
item in another listbox.
Private Sub List0_Click()
Select Case List0.Value
Case "CR2"
List2.SetFocus
List2.ListIndex = 0
Case "CR2(E)"
List2.SetFocus
List2.ListIndex = 1
Case "TRACER"
List2.SetFocus
List2.ListIndex = 2
End Select
End Sub
The code works and does select the specified item from the second listbox.
but .... No item is selected in the first listbox. Why not? How can I
highlight the subject of the original click??
Can I chain a series of listboxes in this way?
item in another listbox.
Private Sub List0_Click()
Select Case List0.Value
Case "CR2"
List2.SetFocus
List2.ListIndex = 0
Case "CR2(E)"
List2.SetFocus
List2.ListIndex = 1
Case "TRACER"
List2.SetFocus
List2.ListIndex = 2
End Select
End Sub
The code works and does select the specified item from the second listbox.
but .... No item is selected in the first listbox. Why not? How can I
highlight the subject of the original click??
Can I chain a series of listboxes in this way?