TonySondergeld
New Member
- Joined
- Jul 11, 2009
- Messages
- 31
I Have 2 Comboboxs, the first Combobox 1 choose the Product from a list of products, when the product is selected. it lookup a range (for example from sheet 2 H4:G1500) it then match all products that match the First combobox value and return all value from the second column of the range and place it into the Combobox 2
Code so far, will place number in Combobox 2 but only the first entry.
Dim myRange As Range
Sheets("Sheet").Combobox1.Clear
Set myRange = Sheets("Sheet2").Range("G4:H1500")
i = Combobox1.Value
Combobox2.Value = Application.VLookup(i, myRange, 2, False)
Code so far, will place number in Combobox 2 but only the first entry.
Dim myRange As Range
Sheets("Sheet").Combobox1.Clear
Set myRange = Sheets("Sheet2").Range("G4:H1500")
i = Combobox1.Value
Combobox2.Value = Application.VLookup(i, myRange, 2, False)