Hi All,
I have this macro which disables the filter functions on a pivot table. I now need another macro which will re-instate or reverse this function. Any help greatly appreciated.
code below to disable below
I have this macro which disables the filter functions on a pivot table. I now need another macro which will re-instate or reverse this function. Any help greatly appreciated.
code below to disable below
Code:
Sub DisableSelection()
Dim pt As PivotTable
Dim pf As PivotField
Set pt = ActiveSheet.PivotTables(1)
For Each pf In pt.PivotFields
pf.EnableItemSelection = False
Next pf
End Sub
</PRE>