Hello
my combobox has 2 column counts and its items are added
When i am clicking on the same it shows the values of 1st item. i dont understand why ?
and not changing the value of idx as shown below
infact clicking on each item should display in combobox text
NimishK
my combobox has 2 column counts and its items are added
When i am clicking on the same it shows the values of 1st item. i dont understand why ?
and not changing the value of idx as shown below
infact clicking on each item should display in combobox text
Code:
Private Sub ComboBox1_Click()
Dim idx As Long
idx = ComboBox1.ListIndex
If idx <> -1 Then
ComboBox1.Text = Me.ComboBox1.List(idx, 0) & " " & Me.ComboBox1.List(idx, 1)
End If
End Sub
Last edited: