+ Reply to Thread
Results 1 to 2 of 2

Cascading Comboboxes with using worksheet name to populate first combobox

  1. #1
    Registered User
    Join Date
    03-31-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2007 and 2010
    Posts
    1

    Cascading Comboboxes with using worksheet name to populate first combobox

    Hi guys,

    I am pretty much a newbie in vba but very much interested in its capabilities. for this i have a form with 5 comboboxes and a listbox.

    So here is my problem. I have a sample file here where i have multiple worksheets (in this sample i only put 2 but i have about 20 on my actual data) and i want to populate my first combobox to be populated by each worksheet name. (i guess this one is simple enough for some of the people here)

    so here's where things get tricky, based on the selection on the first combobox, it will populate the 2nd the unique values of the first column (some are duplicating) which value will in turn populate the 3rd combobox with the unique values of the second column that is related on the first column and so on and so forth. after i picked all of the values, the listbox shows the min qty, max qty, remaining qty and updated by of that specific item

    Note:these values are not on the same location in each worksheet.

    so the scenario looks like this:

    combobox1: list is resistor and capacitor
    *i picked resistor

    combobox2: list are the unique values of the 1st column
    *i picked 1R

    combobox3: shows 0.25, 0.5, 0.6, 1, 2, 2.5
    *i picked 0.25

    combobox4: shows 1, 5
    *i picked 1

    listbox shows: min qty 15, max qty 50, remaining qty 1, updated by jerome

    attached is a sample of my database.
    hope this is not too much for our forum members here. Thank you so much for your help.

    Loadboard Sample Inventory.xlsm
    Last edited by maestrodrex; 04-06-2015 at 10:20 PM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Cascading Comboboxes with using worksheet name to populate first combobox

    Hi maestrodrex and welcome to ExcelForum,

    Try the attached file which should get you started. In the 'Control' Sheet, 'Left Click' the Square Yellow Shape that says 'Display UserForm'. The file was zipped to make it smaller.

    Lewis
    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. Populate combobox dependent on contents of previous combobox
    By ed1967 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-08-2014, 11:40 AM
  2. [SOLVED] Filter worksheet data using 4 dependant comboboxes and populate in 'ListBox' on a userform
    By p_nayak268 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-27-2014, 12:41 PM
  3. how to populate from combobox to worksheet
    By dan2010 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-26-2010, 07:19 AM
  4. dependent comboboxes
    By humboldtguy in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-14-2010, 10:40 PM
  5. Dependent Data Validation Combobox from Other Worksheet
    By blacque in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2009, 08:22 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