Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Im using pivot tables to make reports for my boss in excel. But she has no
idea how to use them so i created macros that set the reports up for her. The problem is i need the macro to clear the current layout in the pivot table before it applies the new layout. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As answered in microsoft.public.excel.misc --
You can hide all the fields: Sub ClearPivot() Dim pt As PivotTable Dim pf As PivotField Set pt = ActiveSheet.PivotTables(1) For Each pf In pt.PivotFields pf.Orientation = xlHidden Next pf End Sub Wike05 wrote: Im using pivot tables to make reports for my boss in excel. But she has no idea how to use them so i created macros that set the reports up for her. The problem is i need the macro to clear the current layout in the pivot table before it applies the new layout. -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to create pivot table from existing pivot table in excel 2007 | Excel Discussion (Misc queries) | |||
Clearing cells without clearing formulas | Excel Discussion (Misc queries) | |||
Clearing Old data in Pivot Tables | Excel Discussion (Misc queries) | |||
clearing pivot table field values | Excel Programming | |||
Help required with setting up a pivot table with the source on sheet1 to have the pivot table created on sheet called "report" | Excel Programming |