T
Tim Coddington
Ok. Figured out how to load a list box
from an Excel range, like so ...
Private Sub UserForm_Initialize()
ListBox1.ColumnCount = 4
ListBox1.RowSource = "A2
" & Cells(1, 1).End(xlDown).Row
End Sub
Sample of spreadsheet values follows:
Name, First
Name, Last
Class
Address
Amber
Boger
2
(e-mail address removed)
Shane
Bobber
1
(e-mail address removed)
Sean
Cantral
1
(e-mail address removed)
Bobby
Smith
3
(e-mail address removed)
Lucy
Johnson
1
(e-mail address removed)
Linn
Cenad
2
(e-mail address removed)
Now I need to load ListBox1 from the same range, but only data
from a certain class, say 2. The list box would pick up Amber and
Linn, but not Sean (because he is class 1). Is there a way to do that?
from an Excel range, like so ...
Private Sub UserForm_Initialize()
ListBox1.ColumnCount = 4
ListBox1.RowSource = "A2
" & Cells(1, 1).End(xlDown).RowEnd Sub
Sample of spreadsheet values follows:
Name, First
Name, Last
Class
Address
Amber
Boger
2
(e-mail address removed)
Shane
Bobber
1
(e-mail address removed)
Sean
Cantral
1
(e-mail address removed)
Bobby
Smith
3
(e-mail address removed)
Lucy
Johnson
1
(e-mail address removed)
Linn
Cenad
2
(e-mail address removed)
Now I need to load ListBox1 from the same range, but only data
from a certain class, say 2. The list box would pick up Amber and
Linn, but not Sean (because he is class 1). Is there a way to do that?