Filter specific column in listbox

  • MODERATOR NOTICE: This topic has also been posted on other sites and may already have an answer elsewhere. Please take this into consideration when answering this question


    Filter specific column in listbox
    Hi Good People, Hoping someone could actually me on this problem. So basically, I have a textbox and a Listbox thats filter via textbox value. However, I…
    www.mrexcel.com



    Hoping someone could actually me on this problem. So basically, I have a textbox and a Listbox thats filter via textbox value. However, I wanted to show only a specific column of my listbox.



    Below code filters my listbox.

    My search starts in a2, if textbox value match the value in column A of my Sheet, then it shows all the items in listbox based on textbox value.



    What I wanted to achieve is to show only lets say column B and column C only..



    My textbox value will search in column A and display column B and C data to the listbox related to column A.



    Is that possible? Thank you


  • alansidman

    Added the Label Cross Post
  • Hi XL,


    That can be done by setting the column width to 0 for column A of the listbox, you can use the .columnwidths property in code or just set the column widths seperated by a semicolon in the properties.


    HTH

    Justin

Participate now!

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