+ Reply to Thread
Results 1 to 17 of 17

Filling two ComboBox Depending On Another ComboBox and ...

  1. #1
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Filling two ComboBox Depending On Another ComboBox and ...

    Hello,
    I want to fill two Combobox (cmb 2 and 3) dependent on what the user has chosen in a first ComboBox (cmb1).
    The first combobox ist based on on the first sheet, and the second and third combobox shall be filled with values from other worksheet corresponding on combobox 1 selection.

    I attached a xls to this post to explain better.

    Please Help! this excel will save me a lot of time!
    Thank you very much!!
    Attached Files Attached Files
    Last edited by iscar_marius; 01-27-2009 at 02:45 AM.

  2. #2
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221
    I really need to make this working !
    Please give me an indication or something ...

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Search for dependant comboboxes there are several entries here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221
    Thank you for your answer!
    I don't know if dependant comboboxes it's what I need, or I can't see how I can use it.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by iscar_marius View Post
    Thank you for your answer!
    I don't know if dependant comboboxes it's what I need, or I can't see how I can use it.
    That's what you seem to askfor originally, take a good look at the examples

  6. #6
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221
    I found an excel file, but I don't understand how it's working.
    I had attached it to this e-mail!
    Can you give me a clue ?
    How can I change, for example, "bikes" with "food" ... ?


    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You need to change the categories listed in the yellow cells.

    Each list item is in a Dynamic Named Range, so you need to add names for your selections & list the items in them.

    Please Login or Register  to view this content.

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You need to change the categories listed in the yellow cells.

    Each list item is in a Dynamic Named Range, so you need to add names for your selections & list the items in them.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221
    Thank you very much! now I am a lot closer to finish my excel file!
    I have another question, how can I do this:
    when I select a value from combobox2 I need a coresponding value to a desired cell ?

    I had attached a new, modified, .xls to this post!

    I tried to modify the code, but it doesn't work how I need it!

    Please Login or Register  to view this content.
    Also I want to appologize for my english
    Attached Files Attached Files

  10. #10
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you stick to one question per thread. You have yor code in th wron combobox.

    I think this is what you want

    Please Login or Register  to view this content.
    Last edited by royUK; 01-25-2009 at 04:25 PM.

  11. #11
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221
    For the future I will stick one question per thread !vSorry!
    Thanks for your answer but it's not what I need!
    Actually I need something like this:
    for example if I select st7 in first combobox and a2 in the second combo, the result should be 2.
    I need the value from the right of the combobox2 selection.

    st7
    a1 1
    a2 2
    a3 3
    a4 4

  12. #12
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try this
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: Filling two ComboBox Depending On Another ComboBox and ...

    Quote Originally Posted by royUK View Post
    Try this
    Please Login or Register  to view this content.
    Not exactly what I need

    column1 column2
    st7
    a1 1
    a2 2
    a3 3
    a4 4

    for the above example the code it's ok, but my second column it's something like this:

    column1 column2
    st7
    a1...............43544,6
    a2 ..............36355,4
    a3 ..............65789,9
    a4 ..............32452,5


    Thank you for your time!
    Last edited by iscar_marius; 01-26-2009 at 04:58 PM.

  14. #14
    Forum Contributor
    Join Date
    07-29-2008
    Location
    New York
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    145

    Re: Filling two ComboBox Depending On Another ComboBox and ...

    Iscar_Marcus
    I've uploaded a file. Warning: I got this solution from someone, and put some pieces together and it worked (if I understand what you want).
    Why did I do it? I used to work on my old VW, and sometimes I got it to work (or the engine blew up and cost me a "four letter scatological reference omitted" load of money to get it fixed ) when I tinkered with it.
    Probably an expert can step you through the code. Why? I'm still trying to understand the code myself.
    Regards,
    Xrull
    Attached Files Attached Files
    Last edited by Xrull; 01-27-2009 at 12:03 AM.

  15. #15
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: Filling two ComboBox Depending On Another ComboBox and ...

    Thanks a lot, this it's exactly what I was looking for !

  16. #16
    Forum Contributor
    Join Date
    07-29-2008
    Location
    New York
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    145

    Re: Filling two ComboBox Depending On Another ComboBox and ...

    iscar_marius,
    One more thing...the boxes self-populate when you add another row.
    Xrull

  17. #17
    Forum Contributor
    Join Date
    07-29-2008
    Location
    New York
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    145

    Re: Filling two ComboBox Depending On Another ComboBox and ...

    iscar_marius,
    One more thing...the boxes self-populate when you add another row.
    Xrull

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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