I am trying to create a series of checkboxes on one worksheet "Selections" that hide rows on another worksheet, "Data Table" when checked so that the Chart on "chart" worksheet only shows the series of data that I want it to show.
I have accomplished this with the simple VBA of:
I attached this code to all 50 or so selection buttons that correspond to different columns in worksheet "Data Table".Please Login or Register to view this content.
I also added a Select All button and Clear All button that work well.
My problem is that if I add a column (new data series) to worksheet "Data Table" all of my checkboxes now point to the wrong column.
So I was trying to figure out what VBA I should use so that it looks in worksheet "Data Table" in row 2 for specific text and then hides the column or columns that match that text.
Any thoughts?
Thank you.
Bookmarks