Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm trying to write a macro that will clear all fields in my pivot table
including the data fields. I have the following: On Error Resume Next Dim pt As PivotTable Dim pf As PivotField Sheets(4).PivotTables("PivotTable2").ClearAllFilte rs Set pt = Sheets(4).PivotTables(2) With pt For Each pf In .VisibleFields pf.Orientation = xlHidden Next pf End With The macro above clears all fields except the data fields. Any ideas for what I could add to the macro to make it also clear the data fields? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
data as a percetage of row fields in pivot table | Excel Discussion (Misc queries) | |||
Drag multiple fields into data of pivot table | Excel Worksheet Functions | |||
how do i create pivot table from data fields containing forumulas | Excel Worksheet Functions | |||
Manipulating Pivot Table Data Fields | Charts and Charting in Excel |