![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: John G
Posts: 62
|
How can I sort the rowsource of combobox? Right now I am using a named range as rowsource. do I have to sort it prior to defining it or can I have it temporarily sorted for display purposes in my combobox?
John |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
Is it a real combobox or a data-validation list box?
__________________
~Anne Troy |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: John G
Posts: 62
|
It is called out as a combobox but I guess, I am using it like a listbox. List values that are in a named range and take data from the column to the right of the displayed value.
|
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
I have some sample code here that adds a sorted list to a listBox (or Combobox) and also removes duplicates.
http://www.ozgrid.com/VBA/UserForms.htm |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|