+ Reply to Thread
Results 1 to 7 of 7

Wrong combobox drops down

  1. #1
    Registered User
    Join Date
    09-27-2017
    Location
    Antwerp, Belgium
    MS-Off Ver
    Professional Plus 2021
    Posts
    7

    Wrong combobox drops down

    Dear all,

    I have 2 activex comboboxes in the same sheet, when I start filling the first one, it drops down as it should and according to what I type the list shortens to what is available. So far so good.
    Then when I start using the second combobox still the first one drops down instead of the one I'm using.
    It is the same problem if I start with the second one and and go to the first, the second one drops down again.
    So the one I first use will always drop down again.
    I tried several things but no solution so far.

    Thanks in advance for any help,
    Regards,
    Rudi

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Wrong combobox drops down

    Show the codes.

  3. #3
    Registered User
    Join Date
    09-27-2017
    Location
    Antwerp, Belgium
    MS-Off Ver
    Professional Plus 2021
    Posts
    7

    Re: Wrong combobox drops down

    Dave,

    There is already some code in it and some jumps from one sheet to another.
    Is there a possibility to send the whole excel file, there are no secrets in it.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Wrong combobox drops down

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  5. #5
    Registered User
    Join Date
    09-27-2017
    Location
    Antwerp, Belgium
    MS-Off Ver
    Professional Plus 2021
    Posts
    7

    Re: Wrong combobox drops down

    Dave,

    sorry for late reply but I was unexpectedly out for business.
    I hope the file is ataached. In the sheet "Transactie" you will find 2 activex comboboxes, start typing somthing in the first one, select the item you want and press enter.
    Now start typing in the next combobox and you will see that the first one drops don again instead of the one you are using.

    Regards,
    Rudi
    Attached Files Attached Files

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Wrong combobox drops down

    Since your ranges for the combo-boxes are formula driven, I believe the issue is when you change the second combobox, that sheet recaluclates kicking in the first combobox change event.

    You don't have to link the comboboxes in order to populate them.

    If you remove the "LinkedCell" & "ListFillRange" in the properties window for both comboboxes, then add this code to the worksheet module, it will populate the comboboxes.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-12-2018
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    32

    Re: Wrong combobox drops down

    Sorry for the late entry,
    I removed the code in the comboboxes - in the change event, you had added a dropdown command. After I removed those the combos worked. Also, an aside, but if you would like a more stable method of receiving data from a combo try the keydown event and use the If KeyCode = vbKeyReturn. The change event is less stable for conveying info. Additionally, you can add error handlers to assure that you are receiving the correct format: String, for example.
    Anyway, sorry again for the interrupt and good luck.
    Happy days,
    Shawn

+ 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] Combobox Time Entry results in wrong calculations
    By SHUTTEHFACE in forum Excel General
    Replies: 11
    Last Post: 12-04-2014, 10:49 PM
  2. [SOLVED] Wrong sorting ComboBox
    By jhonneyboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2014, 07:26 AM
  3. [SOLVED] userform combobox looks up wrong row
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2013, 07:14 PM
  4. [SOLVED] Userform Combobox selection populates wrong data in the textboxes
    By yahya263 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2013, 09:46 AM
  5. Replies: 0
    Last Post: 09-28-2011, 02:52 AM
  6. User Form Combobox wrong date
    By humboldtguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2010, 11:00 PM
  7. zero drops off time
    By rodentrod in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-26-2006, 10:09 PM

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