+ Reply to Thread
Results 1 to 4 of 4

Change ListBox rowsource to another data set from ComboBox selection

  1. #1
    Registered User
    Join Date
    05-21-2014
    Location
    Auckland New Zealand
    MS-Off Ver
    2013
    Posts
    35

    Change ListBox rowsource to another data set from ComboBox selection

    Hi. I have a userform with a listbox and a combobox.
    in a worksheet named "Data" there are 2 tables of data, "Table1" and "Table2"

    With the ComboBox having two possible selections - table1 or table2
    I want to fill the listbox with rows from the table (1 or 2) that is selected in the combobox

    Is there a way to update the ListBox with a new data set when the ComboBox selection is changed?

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Change ListBox rowsource to another data set from ComboBox selection

    Yes there is a way

    Kind regards
    Leo

  3. #3
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: Change ListBox rowsource to another data set from ComboBox selection

    Assuming the number of columns in the listbox & the table are the same:
    Maybe something like this:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-21-2014
    Location
    Auckland New Zealand
    MS-Off Ver
    2013
    Posts
    35

    Re: Change ListBox rowsource to another data set from ComboBox selection

    Thanks Akuini.
    I was stuck on this - probably over complicating it.
    Cheers Bro'

+ 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. [SOLVED] Userform: Change Combobox list based on a second ComboBox selection
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-11-2016, 03:45 PM
  2. Replies: 1
    Last Post: 05-30-2015, 12:15 PM
  3. [SOLVED] Change next ComboBox list based on previous ComboBox selection
    By SteveTheFish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2015, 11:23 PM
  4. Combobox RowSource Selection
    By rskfriends in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-25-2014, 09:57 AM
  5. Dynamically Display RowSource Data in ListBox
    By gjohn282 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2013, 10:53 AM
  6. [SOLVED] Multi Column Listbox change based on a selection from a combobox
    By AttalaEA in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-21-2012, 06:00 AM
  7. using combo box selection to change another's rowsource
    By johnliquid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2011, 09:02 AM

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