Hello Seniors and more particularly @jaslake
BACKGROUND
Worksheet PEF has about 14 check boxes (ACTIVE X control, and not Form Control based CheckBox)
Row 1 to 7 (Range B2:N7 ) is just prepared to have a sort of Dashboard for User to select criteria and filter data
Row 8 will always remains as Header.
Worksheet would have n number of rows which would keep chaning periodically, currently it has data from Row 8 to 2882
Data range (Row:Column) would keep chaning but always start from Row 9 to say current level or 3,000 or 4,000 or 8000 etc.,
In terms of Column currently, data is upto Column AL , in future, it may expand.
Other Notable
Data in Column A:Q mostly would remain static (import from other sources like SQL etc.,).
Data in Column Q:AL keep contracting / expanding in terms of Rows and Column.
However, title in Column Header in Row 8, from Column Q onward would be similar to TEXT result in respective Column Cell thereunder.
Illustration, Currently Column AJ8 header is 'status' and so is the result in same column at many cells,
Likewise Column AK8 Header is 'Water', and so is the content of many columns in Column AK
So each Column header (from Q to AL currently) should have pre-assigned CheckBox (ActiveX Control) and upon Tick (TRUE) should be filtered.
So say, when Col AJ is fitlered on 'status' later when ColAK is filtered on 'Water' it should sub filter data, having result of Column AJ, and so on.
When selected all, all other checkbox should be unticked and all data be made visible / unfiltered.
First CheckBox1 is assigned ALL to mean, if ticked or so, all Data should be unfiltered, all data should be visible.
So it is like Filtering on one criteria in One Column, then applying sub-filter selecting other check box in other Column, which again would be sub-filtered by ticking third check box on third column etc and so on
Order of selecting Checkbox could be anything.
What I really want is that based on criteria specified in several columns, and linked to checkboxes, want to filter data.
Taking Clue from this thread, I tried to replicate but have messed up grossly somewhere.
Idea is to filter data based on wherever Checkboxes are tikced (True), it could be sequentially or otherwiseHTML Code:
Summary
Clear All chkBoxes to unfitler data and show them all.
Select one ChkBox, hold that value,
Select second ChkBox and sub-filter on that value, keeping results in above
Select third ChkBox and sub-filter on that value, keeping results in one and two above
and so on and so forth.
Criteria selection could be in any direction, like User
While Filter, and Sub-filter is applied, Header Dropdown visibility should be FALSE, it should not display any dropdown filter list, if possible.
Sample Workbook with code from above Forum thread as attempt is given in attached file.
P.S.: Filter could be on one criteria or on multiple criteria and not just with basic as was the case in Column B of other forum thread mentioned herein above.
Bookmarks