+ Reply to Thread
Results 1 to 5 of 5

Populate Listbox with Alphabeticized list

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Populate Listbox with Alphabeticized list

    I have the below code to populate my list box. Trying to figure out how to sort the values put into "a" so they're in alphabetical order. Any help would be appreciated.
    Please Login or Register  to view this content.
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Populate Listbox with Alphabeticized list

    There's few ways to do this.

    1. Create temp sheet, sort and then load to ListBox - This is by far the easiest method
    2. Use bubble sort or other algorithm to sort array. Or if it's single column, use ArrayList and use it's sort method. Then load to ListBox.

    It would help if you can upload sample workbook.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Populate Listbox with Alphabeticized list

    Try this
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Populate Listbox with Alphabeticized list

    I found a solution and came back to find an almost identical one. The difference is the sorting macro used.
    Please Login or Register  to view this content.
    Thanks for helping!

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Populate Listbox with Alphabeticized list

    You're welcome. Glad I can offer some help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Multi Select ListBox selections to populate TextBox in list form
    By Tarena in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2018, 10:30 AM
  2. Replies: 7
    Last Post: 01-29-2017, 03:22 PM
  3. Populate (ca 200) Txtboxes depending on listbox selection, live-filter for listbox &1 more
    By InternInNeed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2016, 09:56 AM
  4. [SOLVED] How do I populate a listbox with a list excluding values found in another listbox?
    By Hokiefan00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2014, 01:47 PM
  5. VBA - Populate Listbox based on value selected in another ListBox (On Userform)
    By raaboo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2012, 11:18 AM
  6. Populate ListBox Based On Item Chosen In Another ListBox
    By davemojo82 in forum Excel General
    Replies: 1
    Last Post: 08-04-2009, 08:39 AM
  7. How to Populate a listbox's from one list?
    By Djanvk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-06-2008, 04:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1