+ Reply to Thread
Results 1 to 5 of 5

Alphabetize items in list box?

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Alphabetize items in list box?

    I am currently using the following code to populate two list boxes (lbUnitList, and lbPOList) on a userform:
    How can I get the items in the lbUnitList to show in alphabetical order based on the data in Column 1?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Alphabetize items in list box?

    Hi Nitefox,

    Why don't you sort the two lists where they are on the sheet. Then you don't need to do it using VBA, which is a lot harder. Then you simply need to show the range of (already sorted) cells in your listbox.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Alphabetize items in list box?

    Its not that easy, the sheet contains about 5,000 records, and about 400 get added weekly. They are organized by date. It has to be done by VB.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Alphabetize items in list box?

    You need to show us a sample sheet for much of any help. Writing VBA without seeing what it relates to is a waste of time (for me at least).

  5. #5
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Alphabetize items in list box?

    I have uploaded my workbook. The userform is loaded by the Active Equipment button at the top of the ReturnData page. I would like both the top and the middle list boxes to be listed Alphabetically/Numerically.
    Thanks,
    James
    Attached Files Attached Files

+ 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. Alphabetize list by column B
    By BShane in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-27-2011, 11:44 PM
  2. Alphabetize list and link to other list sorted differently
    By jcclow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2010, 10:35 AM
  3. Excel Formula to Alphabetize Unique items only from a list
    By broshannon in forum Excel General
    Replies: 3
    Last Post: 09-06-2010, 08:07 AM
  4. [SOLVED] Alphabetize Combobox Items
    By XLVBA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2010, 05:08 PM
  5. [SOLVED] How to alphabetize my created list?
    By etakathy in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-08-2005, 11:06 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