ajjava
Board Regular
- Joined
- Dec 11, 2018
- Messages
- 57
- Office Version
- 365
- Platform
- Windows
I've gotten SOOO close to a solution, but something invariably falls apart in practice (and I don't think it's because this is a complicated procedure...instead, it's because I know enough VBA to speak (somewhat) intelligently about it, and to write basic procedures, but I fall apart when it comes to writing logical and efficient procedures that require many loops and logical tests).
Use case:
Any help would be immensely appreciated, as I've burned HOURS on getting this to work.
Here is a visual:
Use case:
- One pivot table (non-data model pivot)
- Many slicers
- Desired output: All manually-selected slicer items (to be used in the title of related charts)
- Output on a specified sheet
- Can be in a list or in a comma-delimited string
- Criteria:
- Only return values from slicers that have been manually filtered (so those with the red x next to the filter icon)
- IGNORE any slicers that have been filtered/limited only as a result of another manually-filtered slicer
- IGNORE the filtering out of '(blank)'items, even though they may be filtered manually by the user
- i.e. If the only item that's been filtered out is '(blank)', treat that slicer as NOT FILTERED and don't return any output
- Loop through all slicers dynamically, no specific slicer names used in the script
- Only return values from slicers that have been manually filtered (so those with the red x next to the filter icon)
Any help would be immensely appreciated, as I've burned HOURS on getting this to work.
Here is a visual: