ahuang3433
New Member
- Joined
- Jan 24, 2017
- Messages
- 39
Hi,
Is there a way to make this pivot skip a the filter criteria if not found?
Is there a way to make this pivot skip a the filter criteria if not found?
VBA Code:
ActiveSheet.PivotTables("PivotTable2").PivotFields("Item Availability"). _
CurrentPage = "(All)"
With ActiveSheet.PivotTables("PivotTable2").PivotFields("Item Availability")
.PivotItems("ETA On Time & Qty Ordered Less than Demand").Visible = False
.PivotItems("In Stock").Visible = False
.PivotItems("No Gating PO").Visible = False
.PivotItems("ETA Late").Visible = False
.PivotItems("ETA On Time").Visible = False
.PivotItems("Partial qty in INV. Balance No Gating PO").Visible = False
End With