Say you have a list of names A1:Axxx, there are a few duplicates. You will be using that list to populate a listbox. B1:Bxxx holds a value (doesnt quite matter here), the last value is selected. So if A1,A4, A7 says Mary, A7,b7's Mary is used vs A1 or A4.
How do I do this in VBA? So far:
How do I do this in VBA? So far:
Code:
With lbox
.ColumnCount = 2
.RowSource = "A1:B" & Sheets("Contact").Range("B" & Rows.Count).End(xlUp).Row
End With