+ Reply to Thread
Results 1 to 7 of 7

Drop down dynamic search field displaying repeat choices from a unique list?

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    california
    MS-Off Ver
    Newest
    Posts
    23

    Drop down dynamic search field displaying repeat choices from a unique list?

    I've got a tool I built in excel - you type in a job you want to look up in the field, say Tax Analyst. The search bar shows all jobs that include the word Tax Analyst, i.e. Tax Analyst 1, Tax Analyst 2...etc all the way up to 6.

    In this case, all I want is for it to return 6 entries total. However, its actually returning those 6 plus the rest of my data sheet as blank entries, PLUS repeat entries (got about 1000 rows of data here - all unique). So, my search results are gigantic and i don't want users to have this kind of mess.

    Please look at my excel file for details. Type in Tax Analyst into the search bar and you'll see what i mean when you scroll down the drop down list using the down arrow.

    Can anyone help me fix this?
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Drop down dynamic search field displaying repeat choices from a unique list?

    If I type in 'Tax Analyst' I'm only seeing 6 entries in the drop down and also in column I, so not quite sure what the problem is, can you be more specific?

  3. #3
    Registered User
    Join Date
    01-15-2015
    Location
    california
    MS-Off Ver
    Newest
    Posts
    23

    Re: Drop down dynamic search field displaying repeat choices from a unique list?

    Yeah you'll see 6 entries. But click the down arrow scroll bar next to the 6 entries and you'll see empty space, duplicates and a whole lot of emptiness.
    Make sense?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Drop down dynamic search field displaying repeat choices from a unique list?

    Like HangMan, I only see the 6 entries and no scroll bar. It appears to be working properly. What version of Excel are you using?

    Edit: I reset a few times and now it is doing what you said it does. Not sure why yet.
    Last edited by ChemistB; 09-22-2015 at 04:50 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Drop down dynamic search field displaying repeat choices from a unique list?

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-15-2015
    Location
    california
    MS-Off Ver
    Newest
    Posts
    23

    Re: Drop down dynamic search field displaying repeat choices from a unique list?

    GREAT!!
    Thank you Chemistb!!

    Can I ask what the rationale is?

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Drop down dynamic search field displaying repeat choices from a unique list?

    This code
    Please Login or Register  to view this content.
    runs when you set the focus on the combo box. You do that when you click on it and begin typing. When you are done typing, the code does not run again (which is what you need it to do) unless you click outside the combo box and then back in.

    Please Login or Register  to view this content.
    runs when you hit enter after changing the contents of the box. That is when you need the code to run.

+ 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. Dependent Drop Down list to autofill next drop down with selective choices
    By MitchellHydro1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-08-2015, 01:18 PM
  2. How to create a drop down list based on the choices of another drop down list?
    By Happy jain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2013, 01:54 AM
  3. Replies: 0
    Last Post: 04-15-2013, 09:22 AM
  4. Userform repeat all data to next row except unique field from listbox
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2012, 11:26 AM
  5. Drop-down list choices restricting choices of other lists?
    By not_quite_excelling in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-25-2011, 06:04 AM
  6. List boxes not displaying choices
    By WillysK5 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-10-2009, 01:07 PM
  7. Drop Down List -- More Choices?
    By cybercab in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2007, 12:40 PM

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