ListBox Sort by Ascending - Descending

  • Good day everyone so i have this problem, i have a listbox1 with combo box which has a value that will sort by ascending or descending buttons .
    i have a code but it does not sort the actual listbox1, instead what it does is he is sorting the actual sheet.

    here is the code and picture


    Noob here, just want to learn more. I'm no expert nor a coder, I only learn by reading and watching youtube guides specially in this forum.

    Edited once, last by bry02 ().

  • Hello,


    The code you posted has been designed to sort cells in your Sheet "Data_Display" ;)


    The question you are asking is quite different ... since you need to sort a ListBox after the ListBox has been populated ...


    This reminds me of a set of re-usable solutions designed by MVP Mark Proctor - Exceloffthegrid


    You can find them at following address :

    Sorting ListBoxes with VBA - Excel Off The Grid
    I received a question from a reader recently, who wanted to sort a Listbox using VBA.  As this seemed like a common problem which many users could face, I
    exceloffthegrid.com


    Hope this will help

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

    Edited 2 times, last by Carim ().

  • Carim

    Changed the title of the thread from “Sort by Ascending - Descending not working” to “ListBox Sort by Ascending - Descending”.
  • thank you for your response, however my buttons for sorting is not designed for sorting Excel sheets.

    what i need is the button to sort my list box depending on the value given by combobox

    Noob here, just want to learn more. I'm no expert nor a coder, I only learn by reading and watching youtube guides specially in this forum.

    Edited once, last by Carim ().

  • Would you mind attaching your sample workbook for review ...

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Would you mind attaching your sample workbook for review ...

    Hi Carim, i just saw your reply right now, i figured it out yesterday when i was playing with it. and found a solution.

    here is my code if anyone needs it or encountered the same problem.


    so basically as you can see, i just copy my RowSourse so it will automatically update or refresh.

    Noob here, just want to learn more. I'm no expert nor a coder, I only learn by reading and watching youtube guides specially in this forum.

  • Glad to hear you could fix your problem :thumbup:


    Thanks a lot for sharing your solution for all Future readers !!! :)

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!