Hi all,
I Would like to be able to filter the data shown based on a dropdown in D5.
The 3 options are the teams: Estate Planner, Advisor Team, Review Team (employee names have been blanked out for the image)
When a team is selected in D5 I would like only the columns E to X to show the relevant employees that are part of that team, At the moment I have got this to work using the code:
Code:
Dim rCell As Range For Each rCell In Range("E9:X9")
rCell.EntireColumn.Hidden = False
Next rCell
For Each rCell In Range("E9:X9")
rCell.EntireColumn.Hidden = (rCell.Value <> Range("D5").Value)
Next rCell
But I would also like the same code the filter columns A:C and hide rows 11:234 based on if the team specified in D5 appears in any of the range A11:C234 (currently the small unreadable text in A11:C234 are the teams)
There may be a better way to have this option (I would have liked to use Pivot table Slicers rather than a dropdown - as potentially this could select 2 teams data to be shown. Any help or suggestions are appreciated.
Thanks