Sub ShowAll()
Application.ScreenUpdating = False
With ActiveSheet.PivotTables("PivotTable1").PivotFields("Fault Type")
.PivotItems("AUD").Visible = True
.PivotItems("IFE").Visible = True
.PivotItems("PSS").Visible = True
.PivotItems("PWR").Visible = True
.PivotItems("VID").Visible = True
End With
With ActiveSheet.PivotTables("PivotTable1").PivotFields("Fault Description")
.PivotItems("ALL").Visible = True
.PivotItems("AOD").Visible = True
.PivotItems("CAL").Visible = True
.PivotItems("ISP").Visible = True
.PivotItems("RDL").Visible = True
.PivotItems("TCH").Visible = True
.PivotItems("VOD").Visible = True
End With
ActiveSheet.PivotTables("PivotTable1").PivotFields("Function Group"). _
CurrentPage = "ALL"
Application.ScreenUpdating = True
End Sub
|