Good evening everyone,
What I am trying to accomplish is to have a ComboBox (we will call this ComboBox1) populate a list of data. When one of those data points are selected using ComboBox1 I need it to populate and additional list of data points (different info) in ComboBox2.
In other words, I need the ComboBox to act similar to the vlookup function however instead of a single point I need the ComboBox to produce a list. Below is the code I have started:
I have not added ComboBox2 in the code because of the unknown coding for what is required.
Thank you for the assistance in advance and if you need any additional information to fix my problem please ask.
DAWG2006
What I am trying to accomplish is to have a ComboBox (we will call this ComboBox1) populate a list of data. When one of those data points are selected using ComboBox1 I need it to populate and additional list of data points (different info) in ComboBox2.
In other words, I need the ComboBox to act similar to the vlookup function however instead of a single point I need the ComboBox to produce a list. Below is the code I have started:
Code:
Private Sub UserForm_Initialize()
Dim cPart As Range
Dim cLoc As Range
Dim ws As Worksheet
Set ws = Worksheets("Catalog")
For Each cPart In ws.Range("type")
With Me.ComboBox1
.AddItem cPart.Value
.List(.ListCount - 1, 1) = cPart.Offset(0, 1).Value
End With
Next cPart
End Sub
I have not added ComboBox2 in the code because of the unknown coding for what is required.
Thank you for the assistance in advance and if you need any additional information to fix my problem please ask.
DAWG2006