+ Reply to Thread
Results 1 to 2 of 2

Quickie... How to change a name with a macro?

  1. #1
    Registered User
    Join Date
    12-21-2005
    Posts
    12

    Question 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!

  2. #2
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500
    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.Refresh

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1