+ Reply to Thread
Results 1 to 11 of 11

Dependent Combo Boxes

  1. #1
    Registered User
    Join Date
    08-08-2023
    Location
    India
    MS-Off Ver
    Ms Office 16
    Posts
    11

    Exclamation Dependent Combo Boxes

    Dear All,

    I am learning VBA macros, I need help with the following-

    I have made a VBA form for inventory list, where in one Combo holds the list of Raw Materials. I need to populate value in another combo box which will show vendors. The second combo box will be dependent on the name of Raw Material in the first combo box. The idea is that one Raw Material can be purchased from multiple vendors. Please note that there is a Text Box involved that will reflect the price, which is dependent on the Raw Material and Vendor Name.

    Request some guidance.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Dependent Combo Boxes

    Hi and welcome

    This is easy enough to do, but would be easier if we could see your form and where the data for the comboboxes is coming from.

    Could you attach a sample workbook?

    BSB

  3. #3
    Registered User
    Join Date
    08-08-2023
    Location
    India
    MS-Off Ver
    Ms Office 16
    Posts
    11

    Re: Dependent Combo Boxes

    Thank you so much

    Attachment 838899 RM File

    Attachment 838900 Inventory Form

    Hopefully you can see this

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Dependent Combo Boxes

    Can't open the attachments. Follow the instructions in the yeloow banner at the top of the page.

    BSB.

  5. #5
    Registered User
    Join Date
    08-08-2023
    Location
    India
    MS-Off Ver
    Ms Office 16
    Posts
    11

    Re: Dependent Combo Boxes

    Created a excel sheet with the details and attached it.
    Hope you can view this.
    Attached Files Attached Files

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: Dependent Combo Boxes

    Pictures are of little use we cannot manipulate them to solve your problem.
    Post the actual .xlsm file complete with the code and userform.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  7. #7
    Registered User
    Join Date
    08-08-2023
    Location
    India
    MS-Off Ver
    Ms Office 16
    Posts
    11

    Re: Dependent Combo Boxes

    Got it! Apologies trying to get a hang of this. Attaching the file. It might seem a bit haphazard. Like I said I am very new at this, been googling and learning.
    Attached Files Attached Files

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Dependent Combo Boxes

    I'm confused... Not sure where the dependent controls are with so little information provided.

    Happy to leave this one to you @torachan. Good luck mate

    BSB

  9. #9
    Registered User
    Join Date
    08-08-2023
    Location
    India
    MS-Off Ver
    Ms Office 16
    Posts
    11

    Re: Dependent Combo Boxes

    If you could please check the RM_INPUT sheet, the point is if you choose an RM, there will be a choice of vendors and once you choose the vendor the appropriate rate will show. The gist of the matter is one can buy same Raw Material from multiple Vendor at multiple price. Does that help?

  10. #10
    Registered User
    Join Date
    07-30-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    14

    Re: Dependent Combo Boxes

    I have enclosed a sample book that shows you how to do this, so you can see my method
    If this is what you are looking for you can use this method in your Workbook.

    Sample Workbook DependantCombos.xlsm

  11. #11
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: Dependent Combo Boxes

    @Suneha Saha, is this what you are looking for - dependant combos - filtering down a single table.
    Attached Files Attached Files

+ 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. Help with Dependent Combo Boxes
    By PintaExcel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2020, 04:00 AM
  2. Dependent Combo Boxes
    By SamuelSamuel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2018, 08:53 PM
  3. Dependent Combo Boxes
    By VaibhavAr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2016, 07:16 AM
  4. dependent combo boxes
    By juandc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2014, 09:53 AM
  5. VBA for Dependent Combo Boxes
    By Ansar Hussain in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-07-2011, 11:32 AM
  6. Dependent Combo Boxes
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-06-2011, 08:10 AM
  7. dependent combo boxes
    By rvc81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2011, 03:47 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