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: 1
Default Pivot Table Name Reset

Hello,
I'm using a macro to import a text file, create two new sheets within
that file with three pivot tables on each new sheet and save the file
as an Excel spreadsheet. This basic macro is run for each of several
text files.

I used the macro record feature to create the pivot tables and these
are the names Excel assigned to the tables:

Sheet 1: PivotTable1, PivotTable2, PivotTable3
Sheet 2: PivotTable1, PivotTable4, PivotTable5

When I import the next text file, the names assigned a

Sheet 1: PivotTable1, PivotTable6, PivotTable7
Sheet 2: PivotTable1, PivotTable8, PivotTable9

Is there any way to reset Excel's internal counter so that each time I
run the macro the table names will be the same instead of incrementing
by one each time?

If I go back and try to import the first text file again and the macro
refers to the original names for formatting the table, I get an error
because the pivot table has been assigned a different number this time.


Thanks!


---
Message posted from http://www.ExcelForum.com/

 
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
Pivot Table (column/row) label cache reset Kris Excel Discussion (Misc queries) 4 December 31st 12 09:07 AM
Default Weight in Pivot Table Charts keeps getting reset scott56hannah Charts and Charting in Excel 0 October 8th 07 04:52 AM
Pivot Table - Formats Reset... why? shadestreet Excel Discussion (Misc queries) 4 April 18th 06 09:25 PM
Reset a caption for a Pivot Table [email protected] Excel Worksheet Functions 0 October 18th 05 03:17 PM
How to aviod reset of Pivot filters when reconnecting to database? Tonny Olesen Excel Discussion (Misc queries) 1 July 9th 05 01:26 AM


All times are GMT +1. The time now is 06:33 AM.

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"