When automating Pivot tables, updated via VBA if you record a macro of down click in the filter (page) area and click ok it produces the Pseudo code like:-
Pivottable.PivotFields("[Variable").ClearAllFilters
Pivottable.PivotFields["Variable"]).CurrentPageName = "[Variable]&.&[Filteritem]"
If I remove Pivottable.PivotFields("[Variable").ClearAllFilters code line
the result ie that the pivottable is updated ... seems the same
Whats the difference?
Pivottable.PivotFields("[Variable").ClearAllFilters
Pivottable.PivotFields["Variable"]).CurrentPageName = "[Variable]&.&[Filteritem]"
If I remove Pivottable.PivotFields("[Variable").ClearAllFilters code line
the result ie that the pivottable is updated ... seems the same
Whats the difference?