L
L.White
I have the following code running for a combobox
Me.ComboBox2.Clear
Me.ComboBox2.ColumnCount = 2
If LCase(myCell.Value) Like LCase(myPfx) Then
Me.ComboBox2.AddItem myCell.Offset(0, 3)
Me.ComboBox2.List(Me.ComboBox2.ListCount - 1, 1) = myCell.row
End If
I don't know how to make the combo box show a third column. I want to show
the value of myCell, the offset of myCell, and the row that they come from.
Other than changing the ColumnCount=3 what line of code do I put into the IF
statement to show the value in the order listed above?
This is running in Excel2003.
Me.ComboBox2.Clear
Me.ComboBox2.ColumnCount = 2
If LCase(myCell.Value) Like LCase(myPfx) Then
Me.ComboBox2.AddItem myCell.Offset(0, 3)
Me.ComboBox2.List(Me.ComboBox2.ListCount - 1, 1) = myCell.row
End If
I don't know how to make the combo box show a third column. I want to show
the value of myCell, the offset of myCell, and the row that they come from.
Other than changing the ColumnCount=3 what line of code do I put into the IF
statement to show the value in the order listed above?
This is running in Excel2003.