Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Pivot Table Help
Im using pivot tables to make reports for my boss in excel. But she has no
idea how to use them so i recorded macros that set the different 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.misc
|
|||
|
|||
Pivot Table Help
Can you write a separate macro to do the clearing, and attach it to a prominent button object that she can click before resetting. Alternatively, put each pivot on a separate sheet and then all she needs to do is open the required sheet. -- robert111 ------------------------------------------------------------------------ robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996 View this thread: http://www.excelforum.com/showthread...hreadid=523058 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Pivot Table Help
i only know how to record and do some minor editing of macros. but i cant
figure what i need to stick in the begining of the macro to have clear the layout, then apply the new layout. "robert111" wrote: Can you write a separate macro to do the clearing, and attach it to a prominent button object that she can click before resetting. Alternatively, put each pivot on a separate sheet and then all she needs to do is open the required sheet. -- robert111 ------------------------------------------------------------------------ robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996 View this thread: http://www.excelforum.com/showthread...hreadid=523058 |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Pivot Table Help
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 recorded macros that set the different 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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Derived Columns in Pivot Table | Excel Discussion (Misc queries) | |||
Need to Improve Code Copying/Pasting Between Workbooks | Excel Discussion (Misc queries) | |||
pivot table created from another pivot table | Excel Worksheet Functions | |||
Change Data In Pivot Table | New Users to Excel | |||
Pivot Table Problems | Excel Discussion (Misc queries) |