+ Reply to Thread
Results 1 to 9 of 9

Combo box should trigger another combo box

  1. #1
    Registered User
    Join Date
    10-19-2008
    Location
    India
    Posts
    7

    Combo box should trigger another combo box

    Hi ppl,

    I have to create two combo boxes and when a user selects a value from one combo box, the values should get changed in the other combo box.

    For example : if one combo box has values like "c/c++ programming" "java programming" and so on.. ... i would like to display the authors recommended (corresponding to combo box1) in the combo box 2.

    please help me out!!!

    thanks in advance..

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    What kind of comboboxes are you using.

    Where is the list stored?

    Attach an example workbook for easiness
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,671
    The workbook attached was posted several months ago for a similar request. I lost the link so can't give due credit:
    dependentdropdowns.xls
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    10-19-2008
    Location
    India
    Posts
    7
    Hi,
    thts what i was asking for my work. but i can't understand one thing. how have they given the link for "Lower Case" which comes under "Alphabet" (in column B)and "LowerCase" (column F)...

    what does INDIRECT(SUBSTITUTE(A3," ","")) DO EXACTLY??

    since i'm new, i'm little slow to understand.

    please reply...

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello se7en_hills,

    The formula removes any spaces in the cell value. This is necessary because of the use of named ranges. A named range cannot contain spaces. It can contain an underscore in its place. So, a cell value like "Roman Numeral" is converted to "RomanNumeral" which matches the named range on "Lists" from I2:I20.

    Sincerely,
    Leith Ross

  6. #6
    Registered User
    Join Date
    10-19-2008
    Location
    India
    Posts
    7
    Hi,

    Thank u.. i got that..

    can i make the user enter all the inputs in the form of drop down and when he clicks on the (say " Upload to Database ") button. The chosen inputs should be put into a query and upload it on the server.

    Thanks....

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello se7en_hills,

    Since your last question does not continue on with your original post, you should start a new thread. Title your new post appropriately to reflect your question.

    Sincerely,
    Leith Ross

  8. #8
    Registered User
    Join Date
    07-30-2015
    Location
    South Africa
    MS-Off Ver
    2010
    Posts
    2

    Re: Combo box should trigger another combo box

    Hi RoyUK

    I have pretty much the same problem, I want a 2nd combo box to be populated with a named range depending on what option was selected in the 1st combo box. the combo boxes are in a userform not on the spreadsheet (not sure if that makes a difference as I have JUST started vba in excel). I tried looking at the example file you posted but it keeps making excel crash (hope that is not a virus).

    PLEASE HELP!!!

    totem

  9. #9
    Registered User
    Join Date
    07-30-2015
    Location
    South Africa
    MS-Off Ver
    2010
    Posts
    2

    Re: Combo box should trigger another combo box

    Quote Originally Posted by protonLeah View Post
    The workbook attached was posted several months ago for a similar request. I lost the link so can't give due credit:
    Attachment 29427
    sorry wrong person......protonLeah please help

    Hi RoyUK

    I have pretty much the same problem, I want a 2nd combo box to be populated with a named range depending on what option was selected in the 1st combo box. the combo boxes are in a userform not on the spreadsheet (not sure if that makes a difference as I have JUST started vba in excel). I tried looking at the example file you posted but it keeps making excel crash (hope that is not a virus).

    PLEASE HELP!!!

    totem

+ 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. Dynamically add pop up combo box with a click event
    By dovee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2008, 12:27 PM
  2. Sorting Data in Multiple Combo Boxes
    By ElsieC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-18-2008, 10:26 AM
  3. Filter data using Combo Boxes
    By gsrai31 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2007, 04:16 AM
  4. Combo Box doesn't drop down when chart in other pane is selected
    By rdfeigin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2007, 09:52 PM
  5. combo boxes options be linked to worksheet?
    By froggy19 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-13-2007, 04:42 AM

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