I have a listbox defined as fmListStyleOption, fmMultiSelect with 2 columns. I want to insert two columns of data into the listbox. How to get this to work?
Code:
For r = 1 To 10
If Sheets("Sheet1").Range("B" & r).Value = ComboBox1.Value Then
ListBox2.AddItem Sheets("Sheet1").Range("B" & r).Value
ListBox2.List(2, r) = Sheets("Sheet1").Range("C" & r).Value
End If
Next