LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Rename an Pivot Item

Hello

Question

I would like to change an pivot item in a pivot.
(Remark, the pivot is empty, no data in there.)

How i have to do it?

In the Example below i would like to rename the Name of the PivotItem
of the Field "ToA" as followed:
Name now: 8287 Result from Dep. Acc
Wished new name: 8287 Result depp acc


I've got it so far....

Sub Rename()
Dim Feld As PivotField
Dim Item As PivotItem
Dim Thepivot As PivotTable
Set Thepivot = ActiveSheet.PivotTables("RicPivot")

For Each Feld In Thepivot.PageFields
If Feld.Name = "ToA" Then
For Each Item In Feld.PivotItems 'Löschen Itemeinträge
If Item.Name = "8287 Result from Dep. Acc." Then
With Item

--Question
--Question reaname ? .Name = "8287 Result depp acc"
--Question

End With
End If
Next
End If
Next

End Sub


How can i assign the new name to the pivot item ?

Is it easier to delete an insert the name ? (delete the item is
simple, but insert a item name ?)


Kind regards,
Roman

 
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
REname Pivot table columns HSalim[MVP] Excel Programming 0 April 25th 07 06:13 AM
Pivot Item: removing non-existant item from the drop down CinqueTerra Excel Programming 2 February 23rd 06 08:47 PM
determine cell is part of pivot item or pivot field isskiran Excel Programming 3 December 8th 03 07:18 PM
Using VBA to rename Pivot Table Query Ron McCormick[_3_] Excel Programming 3 November 7th 03 03:28 AM
Using VBA to rename Pivot Table Query Ron McCormick[_2_] Excel Programming 0 November 6th 03 10:11 AM


All times are GMT +1. The time now is 10:51 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"