Hi to all.
I have a UserForm ComboBox that uses a list of golf venues on my worksheet in range : Range("C5:C" & Lastrow).Value
This works OK, but can anyone offer a way to Sort them in alphabetically order and remove any duplicates?
I’ve tried to apply a few of the codes I’ve found online, but don’t have the skills to adapt them. All I have now is the really basic first lines.
I only have the one sheet, named “Scores” and the UserForm is named “MyScores” if this is required.
Thanks for looking in.
I have a UserForm ComboBox that uses a list of golf venues on my worksheet in range : Range("C5:C" & Lastrow).Value
This works OK, but can anyone offer a way to Sort them in alphabetically order and remove any duplicates?
I’ve tried to apply a few of the codes I’ve found online, but don’t have the skills to adapt them. All I have now is the really basic first lines.
I only have the one sheet, named “Scores” and the UserForm is named “MyScores” if this is required.
Code:
Private Sub UserForm_Initialize()
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, "C").End(xlUp).Row
ComboBox1.List = Range("C5:C" & Lastrow).Value
End Sub
Thanks for looking in.