All,
I have a dynamic range serving as a RowSource for a list that populates a ComboBox in a userform.
I only want the user to see the non-blank items in that range.
I am also using the selection to run a application.match off of so I need to retain it to pre-populate some textboxes.
How can I handle this problem?
I have a dynamic range serving as a RowSource for a list that populates a ComboBox in a userform.
I only want the user to see the non-blank items in that range.
I am also using the selection to run a application.match off of so I need to retain it to pre-populate some textboxes.
How can I handle this problem?
Code:
Private Sub ComboBox1_Change()
Dim x As Variant
x = Application.Match(ComboBox1, Range("SelectionListing"), 0)
TextBox1.Text = Cells(x, 15).Value
TextBox2.Text = Cells(x, 16).Value
TextBox3.Text = Cells(x, 17).Value
End Sub