+ Reply to Thread
Results 1 to 18 of 18

Combo box dropdown misbehaving

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Combo box dropdown misbehaving

    G'day Excel Forum

    Iíve been following a method I found on the net for building a search bar with suggestions dropdown (like a Google search), described here; http://trumpexcel.com/tag/excel-search/

    Itís worked quite well however I am having a small issue with it;

    Weirdly whenever I click on any button, tick any checkbox or hit enter after typing anything elsewhere in my sheet, the search suggestions box Iíve built using this method drops down for no apparent reason (see attachment).

    Has anyone any idea why it might be doing this? Could it perhaps be clashing with another code or have something to do with the version of excel I'm using (2010)?

    Would appreciate any insight you'd have

    Regards

    MattRNR

    P.S. I've hidden the helper columns in the 'Entry Number' column, in the complete version of the spreadsheet these will be hidden by formatting.
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Combo box dropdown misbehaving

    I tried to duplicate the issue you are having, and it didn't' happen to me at all.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Combo box dropdown misbehaving

    Using Excel 2010, I can't do anything with your workbook. In addition to what you describe, the macros don't work for me...all kinds of errors.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Combo box dropdown misbehaving

    Hmm how frustrating... I will rebuild the spreadsheet from scratch and upload it again if the problem persists

    Regards

    MattRNR

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Combo box dropdown misbehaving

    G'day again... I've completely rebuilt the spreadsheet with the same result.

    If anyone has any thought I would appreciate them.

    Regards

    MattRNR

    P.S. I've re-post to the forum here http://www.excelforum.com/excel-gene...ml#post4229175, I'm not sure if that is appropriate or not, but I'm really up the creek on this one so I thought I'd try to get as many eye's over this as I can.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Combo box dropdown misbehaving

    I had no problems with the workbook. It seems to work as designed. Excel however didn't close properly after loading and using the workbook the first time. After, I tried it again and it closed properly.

  7. #7
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Combo box dropdown misbehaving

    I had the same result as newdoverman.

  8. #8
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Combo box dropdown misbehaving

    Hmm how odd... could my software is faulty?

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Combo box dropdown misbehaving

    Might be. Try a repair of Office. Control Panel, Programs and Features, Microsoft Office, Change, Repair.

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,379

    Re: Combo box dropdown misbehaving

    Maybe repairing office is the way to go - after trying your download, I had no issues but Excel crashed when I was dumping your book
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  11. #11
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Combo box dropdown misbehaving

    Righto, I'll try repairing office and see if that has any effect, I'll let you know how I go asap

    Cheers
    Matt

  12. #12
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Combo box dropdown misbehaving

    G'day Again

    I've repaired office, tried the workbook on my desktop again, the uni computers and my neighbors computer. All with the same result... combo box pops up repeatedly... Any thoughts?

    Regards
    MattRNR

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Combo box dropdown misbehaving

    Try disabling add-ins if you have any installed.

  14. #14
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Combo box dropdown misbehaving

    I did try that to no effect...

  15. #15
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Combo box dropdown misbehaving

    I was FINALLY able to reproduce what you are asking about. I haven't quite figured out why it is doing it, but I do know that it has to do with this particular code that is in the search sheet...
    Please Login or Register  to view this content.
    If I comment out the above code, the issue you are asking about does not happen. As soon as I use the sheet without it being commented out, the searchbox drops down again.

  16. #16
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Combo box dropdown misbehaving

    G'day gmr4evr1

    Really comforting to know someone else is seeing what I am seeing I was beginning to think I was going mad.

    Forgive my ignorance but when you say 'comment out' what does that mean? This is actually my first bit of VBA ever...

    Regards

    MattRNR

  17. #17
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Combo box dropdown misbehaving

    Yea, it took a bit to see it happen, but when it did I was like ohhhhhhhhhhhhh, that's what he's talking about.
    Normally your code looks like this...
    Please Login or Register  to view this content.
    When you "Comment it out", it looks like this
    Please Login or Register  to view this content.
    And highlights the text green.
    So basically, commenting it out means adding a ' before each line
    Last edited by gmr4evr1; 11-05-2015 at 07:46 PM. Reason: Corrected typo

  18. #18
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Combo box dropdown misbehaving

    Haha, ah my apologies my explanations can be a tad useless...

    I gave this a go; it is preventing the problem of the drop down occurring elsewhere in the sheet however it's also preventing the search suggestions from appearing when I'm typing in the combo box itself.

    Have I perhaps modified the code wrong?

    'Private Sub ComboBox1_Change()
    'ComboBox1.ListFillRange = "DropDownList"
    'Me.ComboBox1.DropDown
    'End Sub

    It should function as in the GIF at the top of the original method link (http://trumpexcel.com/2013/10/excel-...h-suggestions/) when the combo box is being typed in, but not when typing is being undertaken elsewhere in the workbook...

    Regards

    MattRNR

+ 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] Conditional Dropdown Combo Box
    By KMCurtis in forum Excel General
    Replies: 5
    Last Post: 08-12-2014, 12:42 PM
  2. Excel dropdown/Combo Box
    By Bramflakes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2014, 10:54 AM
  3. Dropdown combo in excel
    By svantaylor in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-03-2014, 11:55 AM
  4. Replies: 0
    Last Post: 08-22-2012, 03:52 PM
  5. [SOLVED] combo box dropdown list
    By pczmut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-29-2006, 10:15 AM
  6. [SOLVED] Combo Box List Dropdown
    By HornJM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2006, 05:15 PM
  7. [SOLVED] Combo dropdown open
    By mino in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2005, 11:05 AM

Tags for this Thread

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