Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
VB(A)
»
Topic:
Ordering entries in a combo box
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Ordering entries in a combo box (Read 2940 times)
0 Members and 1 Guest are viewing this topic.
Tyke
Guest
Ordering entries in a combo box
«
on:
March 02, 2010, 06:49:28 AM »
I have a combobox that I've populated with the names of all the layers in the drawing. In the dropdown list the layers are not ordered.
Is there a way to order the layer names alphabetically?
Thanks
Logged
Atook
Swamp Rat
Posts: 1029
AKA Tim
WWW
Re: Ordering entries in a combo box
«
Reply #1 on:
March 02, 2010, 01:15:11 PM »
I don't think so. In the past I've sorted the list before populating the combobox.
Logged
Matt__W
Seagull
Posts: 12955
I like my water diluted.
Re: Ordering entries in a combo box
«
Reply #2 on:
March 02, 2010, 01:35:49 PM »
http://users.skynet.be/am044448/Programmeren/VBA/vba_sort_listbox.htm
Logged
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @
http://skyviz.io
Tyke
Guest
Re: Ordering entries in a combo box
«
Reply #3 on:
March 03, 2010, 07:06:23 AM »
Thanks Matt,
The link was the answer. The sort had to be modified a little but it now sorts all the layer names in alphabetical order.
If anybody is interested I can post the final version.
Logged
Matt__W
Seagull
Posts: 12955
I like my water diluted.
Re: Ordering entries in a combo box
«
Reply #4 on:
March 03, 2010, 08:25:50 AM »
You're welcome.
Logged
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @
http://skyviz.io
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
VB(A)
»
Topic:
Ordering entries in a combo box