+ Reply to Thread
Results 1 to 4 of 4

Automated search in drop down list

  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    australia
    MS-Off Ver
    Excel 2016
    Posts
    15

    Automated search in drop down list

    Hi

    In a cell I need to put a word or some letters so this would triger a search in a column containing about 3000 cells. What I need is that as i am typing the letters, a drop down list to appear with all the cells containing what I typed so I can select the one I needed.

    Please note that the letters or word I will put will not necessarily be the first letter or word in the search column.

    ie: if I type "house"
    the items containing house would be : "Villakil house" , "mount house virmint" etc....
    I need these items to be shown in the list so I can select.

    I am not sure I need a macro for this or not but I will appreciate your help

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Automated search in drop down list

    This can be done fairly easily in a userform, but the worksheet only has a "change" event that occurs once the user confirms their entry.

    It might be possible to write a Class Module to create a new event that senses each change while still in edit mode, but I wouldn't know how to write it.

    What you could do is use the BeforeDoubleClick event to sense if a certain range is being edited, then open a Userform, which would allow for adjusting the dropdown for every character change entered, and then feed the final value into the worksheet range.

  3. #3
    Registered User
    Join Date
    05-26-2010
    Location
    australia
    MS-Off Ver
    Excel 2016
    Posts
    15

    Re: Automated search in drop down list

    Hi Whizbang,

    Can you please elaborate more on how I should write the code for the useform? Will this give a drop down list of all the items containing the typed in letters?
    Even though I have to confirm my entry I would like to try it to see if it is enough

    Thanks for your help

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Automated search in drop down list

    A combobox in a worksheet. cfr. the attachment.
    Attached Files Attached Files



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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