Reciprocal Comboboxes

  • hello, can anybody help me, so i have two comboboxes in one userform and each of comboboxes are dependant. Currently, the first combobox (cmbCode) is typeable, has dropdown list and dependent with the stock box(txtstock) and name box (cmbname), but when i type in the second combobox (cmbName), second combobox is not typeable, has no dropdown list and not dependent with other boxes . I want to make second combobox is also typeable and dependent likewise the first combobox .Can you help me with the code? sampe file is attached below. Thankyou :)

  • Hello,


    Your Excel worksheet is totally empty ...!!!


    Make sure to attach a file which illustrates as precisely as possible your actual situation ...:wink:

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Oops sorry hehe i already reupload the file above. Hope it works Thanks! :)



    You New File ... is ALSO empty ... !!! :wink:

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Hello,


    Congratulations ...!!!


    With your third attempt the File is not empty ...


    But you have not tested your UserForm which always remain totally empty ...!!! :wink:


    You need to add the following instruction :


    Code
    Me.cmbCode.List = myarray


    in your Private Sub UserForm_Initialize() code ...


    Regarding your question about your Dependent Comboboxes:


    Do you need to have them mutually dependent ... so each combobox populates the other one ???


    Menunggu komentarmu :wink:


    HTH

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • What do u mean by my userform remain totally empty?


    i currently use this code formy userform:




    Yes i need them both mutually dependant

  • Hello,


    Empty ... means :


    If you click on the FORM button ... none of your two comboboxes gets populated ... !!!

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Hello again,


    Looking at your code ... and your UserForm ...


    What you seem to ask for is NOT dependent Comboboxes ...


    BUT reciprocal ... since each combobox has to retrieve info and populate the other one ...

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • No need to worry ... about the proper terms ..


    What is the most important ... is to fully understand what you really need ... :wink:


    Attached is a new Test file for your review ...

  • OMG THANKYOUU so muchh. It works perfectly! Xx :)


    Glad to hear the solution is working for you ...!!! :wink:


    Thanks again for your Thanks AND also for another Like ... :jumpupdo:

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

Participate now!

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