Can someone please help me with 3 dependant list boxes and option buttons, which will provide the user different ways to filter and display data? I have attached a workbook as an example to explain what I would like to achieve.
I have a worksheet called data. And another worksheet called filter, I would like 3 list boxes on filter worksheet and 3 option buttons linked to the first list box. When the workbook opens, first list box needs to be populated with unique values from column A of data worksheet. Then depending on what is selected in list box1, I would like list box 2 to populate with unique values from column B in data worksheet, and then depending selection based on list box 1 and 2, I want list box3 to populate with unique values from column C in data worksheet. All selections need to be optional; user may just want to filter data by using any of these 3 list boxes. Also user must be able to select more then one selection in these list boxes, by holding shift or control on the keyboard.
Next to the first list box there are 3 option buttons. If user selects option 2 or 3 or 1 then the first list box should switch its input range, and populate with unique values from a column which matches with selected option button name.
As user is making selections, I want records from data worksheet (only for those columns only which are listed as headers in row 7 on filter worksheet) to be filtered and display on Filter worksheet. User should be able change order or columns add and remove columns from row 7 and data should be displayed as column headers are listed, carrying original formatting. If user duplicates a column header then there should not be a run time error, either display records twice or a sensible error message to inform the user of the error made, so user can correct it, I would like some comments in the code so I can easily manipulate input ranges for all list boxes, and change option button names to point these to different columns etc. Hope someone can kindly help me with this soon. Thanks in advance
I have a worksheet called data. And another worksheet called filter, I would like 3 list boxes on filter worksheet and 3 option buttons linked to the first list box. When the workbook opens, first list box needs to be populated with unique values from column A of data worksheet. Then depending on what is selected in list box1, I would like list box 2 to populate with unique values from column B in data worksheet, and then depending selection based on list box 1 and 2, I want list box3 to populate with unique values from column C in data worksheet. All selections need to be optional; user may just want to filter data by using any of these 3 list boxes. Also user must be able to select more then one selection in these list boxes, by holding shift or control on the keyboard.
Next to the first list box there are 3 option buttons. If user selects option 2 or 3 or 1 then the first list box should switch its input range, and populate with unique values from a column which matches with selected option button name.
As user is making selections, I want records from data worksheet (only for those columns only which are listed as headers in row 7 on filter worksheet) to be filtered and display on Filter worksheet. User should be able change order or columns add and remove columns from row 7 and data should be displayed as column headers are listed, carrying original formatting. If user duplicates a column header then there should not be a run time error, either display records twice or a sensible error message to inform the user of the error made, so user can correct it, I would like some comments in the code so I can easily manipulate input ranges for all list boxes, and change option button names to point these to different columns etc. Hope someone can kindly help me with this soon. Thanks in advance