Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
All,
This macro was supplied by a member of the group: Debra Dalgleish Very helpfull Sub ResetCaptions() 'retrieve original field names 'if captions have been typed into pt Dim pt As PivotTable Dim pf As PivotField Dim pi As PivotItem Set pt = ActiveSheet.PivotTables(1) For Each pf In pt.VisibleFields For Each pi In pf.PivotItems pi.Caption = pi.SourceName Next pi Next pf pt.RefreshTable End Sub I need to do this for only one pivotitem for all pivot tables on the active sheet. I dont sem to be able to get this to work though I am sure it is simple. Can someone help? Doug |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro with F9 | Excel Discussion (Misc queries) | |||
Make Alignment options under format cells available as shortcut | Excel Discussion (Misc queries) | |||
Help with macro looping and color query function | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) |