+ Reply to Thread
Results 1 to 7 of 7

Dynamic Dependable activex combo box with vba

Hybrid View

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    35

    Dynamic Dependable activex combo box with vba

    Hi friends,

    I have to create 3 active x combo boxes, which should be dependable on each other (i.e combo box 2 should contain the list items based on combo box 1 selection, and combo box 3 should contain list items based on combo box 2 selection.)
    - for combo box list generation i am supposed to use VBA code.
    - List items for combo boxes should be dynamic, as it can change when user will update the data

    Please find attached the test file with more sample data and details on what i am trying to do.
    Dynamic Dropdown.xlsm

    Thanks & regards,

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

    Re: Dynamic Dependable activex combo box with vba

    Check out the code for combobox2 and finish it.
    Attached Files Attached Files

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Dynamic Dependable activex combo box with vba

    Try your Returned File:-

    Regrds Mick
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Dynamic Dependable activex combo box with vba

    Hi MickG, thanks a lot for your help and guidance, but there is small problem.

    what if "sub group" and "country" name will change (or if number of countries will increase or decrease).
    This list in the Combo box 2 & 3 are not dynamic. is there any way to make it dynamic (as the 3 variable can change if user will will update the data in table).

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Dynamic Dependable activex combo box with vba

    Try this Modified code:-
    You should now be able to add new Groups , Sub Groups and Countries to rows 5,6 and 7.
    Regrds Mick
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-18-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Dynamic Dependable activex combo box with vba

    Thanks a lot Mick G for the modified file. Its perfect, working smoothly.

    Thanks and Regards,

  7. #7
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Dynamic Dependable activex combo box with vba

    You're welcome
    Regrds Mick

+ 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. ActiveX combo-box value depends on other combo-box value
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 09-27-2013, 05:24 PM
  2. [SOLVED] ActiveX combo box popularize
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-09-2012, 07:22 PM
  3. vba - dependable combo box - runtime error '1004'
    By plavooka23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2012, 01:06 AM
  4. Dependable combo box
    By CESAR V. ARROYO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2010, 06:50 PM
  5. Population a Combo Box ActiveX
    By ABabeNChrist in forum Word Formatting & General
    Replies: 1
    Last Post: 09-10-2009, 03:49 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