Reversed rowsource in combobox

hentie

Board Regular
Joined
Sep 22, 2008
Messages
61
Can anyone help me?

Code:
frmNCREdit.ComboBoxEditNCRNo.RowSource = "B2:B" & rEnd

I wish for the data displayed in my combo box to be in reverse order.
for example the source rows "B2:B" & rEnd contain this data

1
2
3
4
5

so the Row Source shows data B1:B5

however I wish the data to be displayed in the combobox in a reversed order.

5
4
3
2
1

so I would assume the Row Source should show data B5:B1
but this doesn't change anything in the combobox
can anybody suggest how I can have my data in the combo box displayed in reverse order?

Many thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
No. It is a list that get added to all the time and the list got so long now that it take some time to scroll down. The list is also sorted by date. Now I want the bottom data in colomn to appear on top of my combobox.
 
Upvote 0
Code:
Dim i as Long

With frmNCREdit.ComboBoxEditNCRNo
    For i = Cells(Rows.Count,2).End(xlup).Row to 2 Step - 1
        .AddItem Cells(i,2).Text
    Next i
End With
 
Upvote 0

Forum statistics

Threads
1,222,437
Messages
6,166,025
Members
452,008
Latest member
Customlogoflipflops

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top