ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,699
- Office Version
- 2007
- Platform
- Windows
Hi,
I currently have a ComboBox drop down on my worksheet which when i click on the drop down i see the list of customers from A-Z in the order of First name then Surname.
I need the same but Surname then First name.
I have copied the existing code & changed the relevant items but need some assistance for how it should be reversed.
This is the code in use.
If i am unable to use the above but there is another way then please advise.
have a nice day
I currently have a ComboBox drop down on my worksheet which when i click on the drop down i see the list of customers from A-Z in the order of First name then Surname.
I need the same but Surname then First name.
I have copied the existing code & changed the relevant items but need some assistance for how it should be reversed.
This is the code in use.
Code:
Private Sub ComboBox2_Change()
Dim r As Range
Set r = Range("B7", Range("B" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeVisible) _
.Find(ComboBox2.Value)
If Not r Is Nothing Then r.Select
ComboBox2.ListIndex = -1
End Sub
Private Sub ComboBox2_DropButt*******()
RangeUniqueSortFillControl Range("B7", Range("B" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeVisible), Sheet13.ComboBox2
End Sub
If i am unable to use the above but there is another way then please advise.
have a nice day