+ Reply to Thread
Results 1 to 6 of 6

Cascading Combo Box Help

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    3

    Cascading Combo Box Help

    Hello-
    I am a new user and struggling with creating cascading combo boxes or dropdown boxes. (I would rather have combo boxes because the drop down arrow is always visible) I have gotten the dropdown to work somewhat, but I fear that dropdown boxes do not work with numerical values? Is there any way around this?

    With that said, I am completely lost using active X combo boxes. Can anyone take a look at this and help?

    Thanks-

    Mike
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Cascading Combo Box Help

    Hello there,

    Select the CUI worksheet, then right click on the worksheet's tab. In the blank space provided, next to the cursor copy and paste the following code:

    Please Login or Register  to view this content.
    Close out of Visual Basic. Make sure the Design mode button is not clicked under the developer tab and then click on cells E18

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Cascading Combo Box Help

    Thank you so much for writing this code for me. It is very generous. I am still having difficulties however, I'm sure the problem is in the interface between the keyboard and the seat.

    I have attached an updated spreadsheet. I am trying to get the first selection of Units to drive the slections of diameter and length. For example, if metric is selected, I want the selections of diameter and length to consist of only metric options.

    How do I do this?

    Once again, Thank you.

    Mike
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Cascading Combo Box Help

    Hello there,

    It's okay it gets confusing. The code is based on one activex combobox being on the worksheet with the name combobox1. When you click cell D18, E18, F18, and G18 the combobox shows and the row source is automatically updated to the range of cells in the Lists worksheet that correspond with the selected column. Attached is your original worksheet corrected so that it will work properly. To see the worksheet work, make sure to enable macro and then select a cell in the range D18:G18.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-25-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Cascading Combo Box Help

    Thanks again....

    When I select inch in the units dropdown, it should give me a list of diameters in inches...such as 9'-6", 11'-6" and 13'6" for example. The diameters and lengths are always in meters. How do I correct this.

    Sorry if I'm making this more difficult than it needs to be.

    Mike

  6. #6
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Cascading Combo Box Help

    Change the following line of code:

    Please Login or Register  to view this content.
    To:

    Please Login or Register  to view this content.
    Please take the time to read the code, anything that appears in green is a comment meant to help you understand what each line of code is doing. These comments should help you adjust the code to meet your needs. To view the code, Press Alt+F11.

    Thanks!

    *If this solves your post please mark this thread solved and maybe give a little star tap if I was able to help.

+ 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