Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Quickie... How to change a name with a macro?


I have the following object:
-ActiveSheet.PivotTables("Table Number 5").PivotCache.Refresh-

I would like to change the name of this PivotTable.

But the macro will do this in many different files with different
PivotTable names, and i want them all to be the same!

There is only one pivottable for each file. The would open the file,
activate the table in that sheet and change it to the standart name.

Somebody help, plz!


--
pauloreiss
------------------------------------------------------------------------
pauloreiss's Profile: http://www.excelforum.com/member.php...o&userid=29820
View this thread: http://www.excelforum.com/showthread...hreadid=498673

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Quickie... How to change a name with a macro?


try

x = Table Number 5

ActiveSheet.PivotTables(x).PivotCache.Refresh

if u need to change the name just type

x= sample

so now it should be

ActiveSheet.PivotTables("Sample").PivotCache.Refre sh


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=498673

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
Quickie Kev Excel Discussion (Misc queries) 6 June 7th 07 03:26 PM
A Quickie missymissy Excel Discussion (Misc queries) 5 December 22nd 05 01:26 AM
Quickie on Pivots Soapydux Excel Discussion (Misc queries) 4 November 24th 05 12:08 AM
Another quickie... Heatherbelle89 Excel Discussion (Misc queries) 2 July 9th 05 05:44 AM
A Quickie gradientS Excel Discussion (Misc queries) 5 February 16th 05 08:50 AM


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