Is there a way to uncheck other items in a pivot table except a specific one?
问题 I am new to VBA and I am having some trouble with some code on how to uncheck or deselect all items in a pivot table except a specific one. I am creating a button to automatically filter data that will only reveal data in January ("20190131") or in February ("20190228") and so on etc. I still dont have data for October ("20191031"), November and December, which causes error "Unable to set the Visible property of the PivotItem" because there is still no existing data of those dates. I just