Can you please let me know how I can create a Two columns Look up combobox in Excel VBA UserForm? I am looking to create some thing like this:
I know we can add Items to combobox using a method like this:
Private Sub UserForm_Initialize()
With Me.ComboBox1
.AddItem "215"
.AddItem "316"
.AddItem "485"
End With
End Sub
but I need to generate a associated value with 215,316,485 and so on valyes like hammer,... Thanks for your time,
Fill a two-dimensional array and set the
List
property of the ComboBox to that array:You may also need to adjust the
ColumnWidths
andTextColumn
properties accordingly