hi,
im using the code below to add values to a combobox, the values are string
once all the values are added to the combobox
is it possible to sort the values in the combobox alphabetically?
Please Login or Register to view this content.
hi,
im using the code below to add values to a combobox, the values are string
once all the values are added to the combobox
is it possible to sort the values in the combobox alphabetically?
Please Login or Register to view this content.
Load your results in a System.Collections.ArrayList which has a Sort command.
Then use this list to fill Combobox.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
Please Login or Register to view this content.
Please Login or Register to view this content.
thanks guys!
You are welcome and thanks for the rep.
Just for your information, ArrayList can't sort data like "A123, E1", "A1123, D1", "A2, C1" etc.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks