T
Todd Huttenstine
Below is a listbox code that looks in the range and fills
the combobox with the values. Is there a way to add into
the code to ignore cells that = "" (nothing)?
And also is there a code that instead of looking in columns
(like the below code does), can look for values down rows
instead of across columns? For instance in Range A1:A20.
Thanx
Private Sub UserForm_Initialize()
ListBox1.ColumnCount = 1
ListBox1.RowSource = "ab1:ab26"
ListBox1.ControlSource = "E20"
'Place the ListIndex into cell E20
ListBox1.BoundColumn = 0
End Sub
the combobox with the values. Is there a way to add into
the code to ignore cells that = "" (nothing)?
And also is there a code that instead of looking in columns
(like the below code does), can look for values down rows
instead of across columns? For instance in Range A1:A20.
Thanx
Private Sub UserForm_Initialize()
ListBox1.ColumnCount = 1
ListBox1.RowSource = "ab1:ab26"
ListBox1.ControlSource = "E20"
'Place the ListIndex into cell E20
ListBox1.BoundColumn = 0
End Sub