search functionality on User Form

  • I have a user form with 20 items on it to select



    I would like to know how to set up a search button on the user form to search for an item for e.g. if one of the items is "Open Journal folder" , I would like to be able to search for e.g. Journal and it will take me to this item on the user form




    Your assistance regarding the above is most appreciated

  • Re: search functionality on User Form


    Question is way too vague to be able to answer Howard. Sorry. Take a look at the possible answers section below, or attach an example stating more clearly what you need to do.


    for example:
    20 items to select.... is that a list box, or a combobox, or command buttons or checkboxes or option buttons.... etc. etc.
    search for an item.... where... in a list box, or in a worksheet.... etc. etc.
    search for open journal folder... do you have a "search box" on the user form....? How does it know to link Open Journal Folder to the "Journal" item?


    Attach an example if the possible answers section dont help.


    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: search functionality on User Form


    I have a workbook with option buttons, where I would like to be able to search for a option button and for this then to be selected


    I have have attached a sample workbook that contains several option buttons. It would be appreciated if you could assist me by adding search functionality to find a particular option button and to select the option button searched for


    It would be appreciated if you could kindly assist me

  • Re: search functionality on User Form


    I would probably use a ListBox instead of Option Buttons. Why would you need to search for the OptionButton?

  • Re: search functionality on User Form


    Thanks for your Input Roy. I will amend and use a listbox instead of the option button. The reason I wanted to search for the option button is that if one had many option buttons , one would have to spend time finding it

  • Re: search functionality on User Form


    I would agree with Roy... probably better ways you could do this.... but if you REALLY REALLY wanted to keep going down this path then add a text box to you user form..... (name = Textbox1 by default) then put this code on the change event of the textbox...



    Its a little bit of a strange approach to designing the Userform though.


    HTH
    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

Participate now!

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