ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sorting Excel combo box list (https://www.excelbanter.com/excel-programming/280003-sorting-excel-combo-box-list.html)

Ballistix

Sorting Excel combo box list
 
I want an Excel VB combo box to display unique sorted entries (numbers
and text) in the drop-down list.

The unique entries bit is easy enough, but I can't figure out how to
have it sort the range (other than by putting the range on a hidden
worksheet and using a macro to sort it).

Ideas?

Justin



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


Tom Ogilvy

Sorting Excel combo box list
 
See John Walkenback's page. He uses a relatively slow bubble sort, but it
isn't bad for small lists:

http://j-walk.com/ss/excel/tips/tip47.htm
Filling a ListBox With Unique Items

--
Regards,
Tom Ogilvy


Ballistix wrote in message
...
I want an Excel VB combo box to display unique sorted entries (numbers
and text) in the drop-down list.

The unique entries bit is easy enough, but I can't figure out how to
have it sort the range (other than by putting the range on a hidden
worksheet and using a macro to sort it).

Ideas?

Justin



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/





All times are GMT +1. The time now is 12:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com