Diving_Dan
Board Regular
- Joined
- Oct 20, 2019
- Messages
- 161
Hi all,
I've got the following code that is working fine for me but I need to adapt it and not quite sure how. At present it puts all data from column 8 of a table into a combobox.
What I would like it to do is only pull data from column 8 of the table if column 2 of that row contains "A", "B" or "C".
Any help is appreciated as always.
I've got the following code that is working fine for me but I need to adapt it and not quite sure how. At present it puts all data from column 8 of a table into a combobox.
What I would like it to do is only pull data from column 8 of the table if column 2 of that row contains "A", "B" or "C".
VBA Code:
Private Sub cmdViewAmendStaff_Click()
With frmSelectStaff
.OptionButton1.Value = True
.cboStaff.List = Sheets("A Team").ListObjects("Table1").ListColumns(8).DataBodyRange.Value
.Show
End With
End Sub
Any help is appreciated as always.