+ Reply to Thread
Results 1 to 15 of 15

Sorting Listbox & Delete

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Sorting Listbox & Delete

    Hi guys,

    Here I have a listbox, but I would like to know if it's possible to be able to sort each header on the userform when clicking on the header?

    Also, how should I also delete some entries with a button?

    Please help.

    listbox.xlsm

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Sorting Listbox & Delete

    You need listview, see attached file
    Attached Files Attached Files
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Sorting Listbox & Delete

    But how do I delete with a button?

  4. #4
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Sorting Listbox & Delete

    This is a very useful listbox ,can anyone help please?

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sorting Listbox & Delete

    Quote Originally Posted by lapot View Post
    This is a very useful listbox ,can anyone help please?
    Hi

    What kind of help?

    I suggest you to start a new(your own) thread with your question and if you feel that this thread is relative, then add a link to this thread.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Sorting Listbox & Delete

    sorry I didn't know that

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Sorting Listbox & Delete

    Quote Originally Posted by calvinle View Post
    But how do I delete with a button?
    you can delete BEFORE SORTING with this code, see above attached file
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Sorting Listbox & Delete

    Hi Patel,

    Thank you very much for the code. I am getting almost there. The delete option that you gave can only delete 1 at a time. How to do so if multiple select is set to true. How to multi select delete rows??

  9. #9
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Sorting Listbox & Delete

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Sorting Listbox & Delete

    Perfect!!!! You are incredible! Thank you so much!

  11. #11
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Sorting Listbox & Delete

    I did not see the before sorting part. Will it be possible to also if we sort them, it will sort in the sheet as well?

    Thanks.

  12. #12
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Sorting Listbox & Delete

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Sorting Listbox & Delete

    You are the best!!! I am pretty sure this topic will help a lot of people in here..!

    Thank you!

  14. #14
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Sorting Listbox & Delete

    Do you have any suggestion if I want those listview cell to be editable?

    Thanks.

  15. #15
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Sorting Listbox & Delete

    I think you have to open a new thread

+ 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] Sorting Listbox numerically correct
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2014, 08:38 AM
  2. [SOLVED] listbox number sorting
    By dannyhar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-27-2013, 09:28 AM
  3. Sorting a listbox
    By AndyE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2013, 05:11 PM
  4. Read text file to ListBox and Delete rows in ListBox and re-write text file
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-29-2012, 09:42 AM
  5. Sorting Listbox
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2010, 12:08 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