I'm making a Userform in Excel to easily input text into a worksheet.
I have a second worksheet containing information that has to be populated into the userform.
This sheet contains 2 columns, one column (A) has numbers and the second one (B) has the description of the items linked to these numbers.
Currently I have the first part of the population working.
A combobox is being populated with the item numbers using this code:
Private Sub UserForm_Initialize()
With Worksheets("nummers")
cobProductNr.List = .Range("A1:A" & .Range("A" & .Rows.Count).End(xlUp).Row).Value
End With
End Sub
My question is, what code do I write in my form so that when I select an item(number) through my combobox, a textbox that has to contain the description automatically gets filled in?