Hello everyone,
I hope you can help me editing the below macro.
I have created a database in excel and for each column there is a header. Just below each header there is a checkbox which controls (shows/hides) rows depending on whether each cell at each specific column contains a character.
For each checkbox I used the code below:
I used the above code for CheckBox1, CheckBox2.....CheckBox15 since I have 15 columns with headers.
This code works fine as soon as one CheckBox is clicked and unclicked each time but when I click more than one CheckBox, the second Checkbox works on the resulting table from the already clicked first CheckBox.
What I want to do is to create a macro which when CheckBox1 is clicked, it would show all the rows which cells contain the character "Y" and hides the rows with empty cells but at the same time when I click CheckBox2 (with CheckBox1 on), to show both results from CheckBox1 and CheckBox2. In the same principle, until CheckBox15.
For the checkboxes I am using ActiveX Controls.
I would be really grateful if you could help me on this!
I hope I did not confuse you.
Thanks a lot!
Bookmarks