Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Pivot Table - Overwriten PivotField Label

In pivot tables you can actually (accidentall) overwrite the row and column
headings to the extent that they become "corrupt". i.e. the data field value
does not reconcile back to the pivot row/pivot column.

i.e. say you have dates running down the list, if I type over the labels, I
could not get the "original" labels back.

e.g. if the date is 01/21/2006 and I overtype it to 02/21/2006

How can I get the right labels back?
I have tried refreshing the pivot table, refreshing the pivot cache and
using the following code from contextures to no avail. The label simply does
not budge.
Short of recreating the pivot table again, is there anything else I can do?

http://www.contextures.com/xlPivot04.html#Clear2002

Sub DeleteMissingItems2002All()
'prevents unused items in non-OLAP PivotTables

'in Excel 2002 and later versions
'If unused items already exist,
'run this macro then refresh the table
Dim pt As PivotTable
Dim ws As Worksheet

For Each ws In ActiveWorkbook.Worksheets
For Each pt In ws.PivotTables
pt.PivotCache.MissingItemsLimit = xlMissingItemsNone
pt.PivotCache.Refresh
Next pt
Next ws

End Sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculated column label in pivot table? mikelee101 Excel Discussion (Misc queries) 1 October 5th 12 01:58 PM
Clear row label data in pivot table Shig Excel Discussion (Misc queries) 2 February 2nd 10 05:08 PM
Pivot Table Value and Label Filters Larry Excel Discussion (Misc queries) 0 March 7th 07 03:02 PM
Pivot Table Label Hood Excel Worksheet Functions 0 June 28th 06 04:26 PM
Pivot Table Label Dustin Excel Discussion (Misc queries) 2 January 26th 05 03:25 AM


All times are GMT +1. The time now is 09:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"