+ Reply to Thread
Results 1 to 4 of 4

Dynamic/Dependent lisbox.

  1. #1
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Dynamic/Dependent lisbox.

    Howdy All.

    I would like To display product information in a multi column listbox. Column 1 is a product category and Column 2 is the product description.

    Now for the dynamic part.
    I would like to have a combobox loaded with non duplicated values of column 1 of the listbox.
    When "~Caulking~" is selected from the combobox. The listbox is to display only the "~Caulking~"products and their description.
    And having a value of "~All Items~" placed into the combobox will display All products in the listbox.

    The sheet that will contain the raw data source can/will have items added to inceacing the row count. Also the sheet will be left in an unknown sort by column state.

    I thought of taking the raw data source and copying it to a new sheet and splitting the data into various columns, Eg 1 column for "~Caulking~" another for "~All Items~"... and then removing the sheet on userfrom completion. Or possably using collections or scripting dictonary or anythink that works well.

    Any Advice will help alot.

    Cheers
    Attached Files Attached Files
    Last edited by D_Rennie; 11-10-2009 at 08:32 AM.


  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Dynamic/Dependent lisbox.

    Surf here and you'll get a very good step by step tutorial:
    http://contextures.com/xlDataVal02.html
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Dynamic/Dependent lisbox.

    Thankyou.

    My fault for not putting up enough information.

    I would like to do this from a Userform. i have probley missed out more info like.
    this will eventually end up in a multipage userform. Will have to be able to copy a selected row and use listbox column 2 as the selected output. Possibly allow for drag and drop behaviour.

    cheers again.

  4. #4
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Dynamic/Dependent lisbox.

    There is one way i know this can be done.
    Please Login or Register  to view this content.
    I have code for populating the combobox with only unique entrys somewhere aswell.
    Ill just go with this.

    though if there are other ways of doing this i would like to look into it.

    cheers

+ 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