• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

PIVOT Table hide filter.

Under Pivot table Tools (pink menu in XLS 2010) in "option sub tab"
in the ribbon at the right you have severa show options
One is called Field headers (clicking on the button will dispay or hide)
 
But I want that to remove filter only ....if i clicking on field headers pivot table headers got hide.

I want only to remove filter not heading.

Please help in this regards.
 
Hi..,
pls use this code to remove filter from all pivot table in active workbook.

Code:
Sub removepivotfilter()

Dim pt As PivotTable
Dim pf As PivotField
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
        For Each pt In ws.PivotTables
            For Each pf In pt.PivotFields
            pf.EnableItemSelection = False
              Next pf
        Next pt
    Next ws
               
End Sub
 
Hi Nitesh, could I pretty please get the macro to add the filters back in? Thanks the first macro worked a dream, but I have to go back and make some edits
 
Back
Top