Hi,

I have Pivot Table that is based on data model.

I would like to filter it from VBA.
Please Login or Register  to view this content.
The code above works only if "option1" and "option2" are possible for "FILTER1" field.

How can I change the code to select only options that are possible?