+ Reply to Thread
Results 1 to 9 of 9

Dependent Combo Box VBA

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Saugerties, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Dependent Combo Box VBA

    Hello Excel Pros and Masters,

    I am creating a form for my company designed for taking orders. I am looking for some advice on how to make one combo box dependent on another. Such as a main category than a sub category. In this case I need to select the product type then the product and then also link the item number to it =x. I attached the document so you can understand what I mean. Any advice would be awesome. the database is on sheet 2.
    orderguideuserform.xlsm

    Thanks,

    Nich

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Dependent Combo Box VBA

    See if you can work with this


    orderguideuserform.xlsm
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    Saugerties, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Dependent Combo Box VBA

    Mike!,

    Thank you very much =D. The only issue is that when I attempt to launch the userform I receive run-time error 438 and I can't seem to diagnosis the problem. Any idea as to why it would be doing this? Thanks again =D

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Dependent Combo Box VBA


  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Dependent Combo Box VBA

    What Line is giving the error?

  6. #6
    Registered User
    Join Date
    08-17-2012
    Location
    Saugerties, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Dependent Combo Box VBA

    I found the problem Mike =P. It was the name of the userform. I will let you know how I make out. Thank you!!!!

  7. #7
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Dependent Combo Box VBA

    Ok,

    I would still download the second one I uploaded. I made some minor changes.

  8. #8
    Registered User
    Join Date
    08-17-2012
    Location
    Saugerties, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Dependent Combo Box VBA

    I downloaded the second one.
    Last edited by ndeboni1; 09-18-2012 at 11:34 PM.

  9. #9
    Registered User
    Join Date
    08-17-2012
    Location
    Saugerties, NY
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Dependent Combo Box VBA

    To all those that need a copy of this form here it is. Enjoy =D.orderguideuserformv2copy.xlsm

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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