+ Reply to Thread
Results 1 to 7 of 7

3-tiered dependent combo boxes in userform using excel 2007

  1. #1
    Registered User
    Join Date
    04-14-2013
    Location
    Kolkata,India
    MS-Off Ver
    Excel 2007
    Posts
    4

    3-tiered dependent combo boxes in userform using excel 2007

    I have been able to cascade two combo boxes in the userform by using the "select case" statements however it becomes tedious with the third dependency. Is it possible to change the row source of the third combo box depending upon the selections in the first two combo boxes. I tried the following code but i gather i am lost:


    Please Login or Register  to view this content.
    Please Help!!!
    Last edited by sahas; 04-18-2013 at 09:33 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: 3-tiered dependent combo boxes in userform using excel 2007

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-14-2013
    Location
    Kolkata,India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: 3-tiered dependent combo boxes in userform using excel 2007

    Sorry 'bout that... I have edited the post...

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: 3-tiered dependent combo boxes in userform using excel 2007

    No problem.

    There's one obvious problem with the code, & is the concatenation operator and you can't use it for the logical operator AND.

    So replace & with AND.

  5. #5
    Registered User
    Join Date
    04-14-2013
    Location
    Kolkata,India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: 3-tiered dependent combo boxes in userform using excel 2007

    Thanks but still doesn't work

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    In what way does it not work?

    Can you attach a sample workbook?

  7. #7
    Registered User
    Join Date
    04-14-2013
    Location
    Kolkata,India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: 3-tiered dependent combo boxes in userform using excel 2007

    OH! Sorry. It's working... I had forgotten to unquote the "With and End With" statements... Thanks a lot Norie..

+ 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