+ Reply to Thread
Results 1 to 4 of 4

Sort Listbox in Userform

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Sort Listbox in Userform

    VBA Experts,

    I need your help! My listbox values consists of Invoice numbers that start either with an alphabet letter (D00102) or with just numbers (200001). I found this code below online but I can't get it to sort it by numbers first then letters. For example, I would like the listbox to show:

    1000001
    1000002
    2000001
    3000001
    4000001
    W00001
    Z000001

    Please Login or Register  to view this content.
    Can anyone help please?

    Thank you!!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Sort Listbox in Userform

    Can we see the values before they are sorted?
    If posting code please use code tags, see here.

  3. #3
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Sort Listbox in Userform

    maybe try this:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Sort Listbox in Userform

    That worked!!! Thank you so much!!!! I will mark this as solved!

+ 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. Transfer Data From One Userform Listbox to Another Userform Listbox with 11 columns
    By sparkoft in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-18-2013, 10:54 AM
  2. userform listbox
    By tsiguy96 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-14-2013, 11:09 PM
  3. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  4. Populate userform listbox based on value selected in another listbox
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2012, 05:16 PM
  5. [SOLVED] Sort a multi column listbox in userform
    By Martin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2005, 05:05 PM

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