Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Pivot table rename

hi guys

after running a macro through a pivot table a few times i found that the
data inside became corrupt. so to save time i created the same pivot next to
it. once ive ran the macro a few times i copy and paste the backup over the
origional and manually change the name of the pivot table. this works
brilliantly so no issues there.

i am however trying to macro this process. but am coming up against what
could be a simple thing. how do i get the new pivots name. the range for the
pivot is ad4:Ag9. the reason for the name is that all my macros run using the
pivots actual name and when copying and pasting over it reverts to a new name
and it keeps changing the more i do it.

ive tried
range("AD4").select
active.pivottables.name="UM"
selection.pivottable.name="UM"

please help

rivers
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
How to rename a GROUP in a Pivot table spudsnruf Charts and Charting in Excel 6 April 4th 23 10:25 AM
rename groups in Pivot table Kermit Excel Discussion (Misc queries) 1 July 8th 08 08:50 AM
Rename a worksheet to use with a pivot table David J[_3_] Excel Programming 1 February 5th 08 08:22 PM
REname Pivot table columns HSalim[MVP] Excel Programming 0 April 25th 07 06:13 AM
Using VBA to rename Pivot Table Query Ron McCormick[_3_] Excel Programming 3 November 7th 03 03:28 AM


All times are GMT +1. The time now is 05:09 PM.

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

About Us

"It's about Microsoft Excel"