+ Reply to Thread
Results 1 to 8 of 8

Creating multiple dependent combo boxes

  1. #1
    Registered User
    Join Date
    08-17-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Creating multiple dependent combo boxes

    Hi. I have created a quiz to a foreign language and have multiple dependent drop down lists. i.e. whatever is selected in the 1st list affects what appears in the 2nd list. And whatever is selected in the 2nd list affects what appears in the 3rd list. However I have had problems adjusting the font size in the lists and someone recommended using combo boxes instead (which actually look a lot neater too). How would I go about doing the same thing but with combo boxes?
    Also, one thing I forgot to mention, is that I have a command button that when pressed, selects a word at random in another spreadsheet. And at the moment when I click that button, whatever was selected in those drop down lists, resets back to default (nothing). I would like to keep that happening.

    Hebrew Verb Generator - v2.xlsm

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating multiple dependent combo boxes

    the two things you need to know with combobox

    linked cell = where information of selected combo value is stored
    listfillrange = your named list

    so i hide the value of selected value of combobox behind the combobox itself

    see attached
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    08-17-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Creating multiple dependent combo boxes

    How did you get the words hiding behind the combo boxes synced with the boxes? Because I will need to move it all to cells B3:D3.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating multiple dependent combo boxes

    under developer tab, click on design mode

    right click properties > linked cell

    in case you dont know where to find developer tab
    http://www.addintools.com/documents/...sign-mode.html

    ps you dont have to have it behind the combobox if you dont want it
    you can have it hidden anywhere on the sheet like in column H and hide it

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating multiple dependent combo boxes

    D3, G3 and j3 on data 1 sheet have space at end of word which is making your named range not pick up properly

  6. #6
    Registered User
    Join Date
    08-17-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Creating multiple dependent combo boxes

    Yeh that fixed the problem for some of the lists not showing up. Thanks heaps. But the moment I move it all to cells B3:D3. Only the 1st combo box works. And the others aren't linked. I remember that before with the drop down lists, for the 2nd and 3rd drop down lists I had to do an Indirect function to the previous list. Where as these don't seem to be linked the same way.
    Last edited by jamiegfinch; 08-25-2014 at 06:12 PM.

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating multiple dependent combo boxes

    there is some code you need to change in your main sheet
    sorry since code exist for your command button i thought you knew to look there

    as i also amended your command button to reset the combobox boxs
    under command button
    Please Login or Register  to view this content.

    code for combobox (CBO)

    1st triggers 2nd which triggers 3rd CBO

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-17-2014
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Creating multiple dependent combo boxes

    Good stuff! I knew something wasn't adding up properly and I'm not really savy with VBA code. Thanks heaps.

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Creating multiple dependent combo boxes

    not a problem

    glad to help

    Cheers
    Hum

+ 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. Creating a userform with dependent combo boxes
    By Pooley1988 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 01:27 PM
  2. Replies: 2
    Last Post: 09-16-2012, 04:39 PM
  3. VBA for Dependent Combo Boxes
    By Ansar Hussain in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-07-2011, 11:32 AM
  4. Dependent Combo Boxes
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-06-2011, 08:10 AM
  5. dependent combo boxes
    By rvc81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2011, 03:47 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