Option Explicit
_______________________________________
Private Sub ComboBox1_Change()
End Sub
________________________________________
Private Sub ComboBox1_Click()
Dim c As Range
ListBox1.Clear
With Sheets("X")
For Each c In .Range("E16:E" & .Range("E65536").End(xlUp).Row)
If c = ComboBox1 Then
ListBox1.AddItem c.Offset(0, 1)
ListBox1.List(ListBox1.ListCount - 1, 1) = c.Offset(0, 2)
'************************************************************
ListBox1.List(ListBox1.ListCount - 1, 2) = c.Offset(0, 7)
ListBox1.List(ListBox1.ListCount - 1, 3) = c.Offset(0, 8)
ListBox1.List(ListBox1.ListCount - 1, 4) = c.Offset(0, 23)
ListBox1.List(ListBox1.ListCount - 1, 5) = c.Offset(0, 24)
ListBox1.List(ListBox1.ListCount - 1, 6) = c.Offset(0, 33)
ListBox1.List(ListBox1.ListCount - 1, 7) = c.Offset(0, 39)
'************************************************************
End If
Next c
End With
End Sub
____________________________________________________
Private Sub ListBox1_Click()
Worksheets(ListBox1.List(ListBox1.ListIndex, 2)).Activate
ActiveSheet.Rows(Val(ListBox1.List(ListBox1.ListIndex, 3))).Select
End Sub
_____________________________________________
Private Sub UserForm_Click()
End Sub
Private Sub UserForm_Initialize()
Dim c As Range
Dim data As New Collection, el
With Sheets("X")
For Each c In .Range("E16:E" & .Range("E65536").End(xlUp).Row)
On Error Resume Next
data.Add c, CStr(c)
On Error GoTo 0
Next c
End With
For Each el In data
Me.ComboBox1.AddItem el
Next el
Me.ListBox1.ColumnCount = 42
End Sub