+ Reply to Thread
Results 1 to 2 of 2

How do pivot tables get numbered

  1. #1
    Registered User
    Join Date
    03-29-2017
    Location
    Charlotte
    MS-Off Ver
    2013
    Posts
    7

    How do pivot tables get numbered

    I'm creating pivot tables with VBA and I'd like to know how excel determines the number that the pivot table uses:
    Example - TableName:= "PivotTablex" where x is some number. Is there a way that I can control that number?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: How do pivot tables get numbered

    It's in order of creation within given workbook. Even if you delete one, number is always incremented by 1 from largest in workbook.

    You can control it by naming PivotTable using code.
    Ex:Assuming you are creating pivot cache as you create pivot table.
    Please Login or Register  to view this content.
    So table name is set using TableName:="string". You can construct this using variable and control what number is tacked on at the end, if so desired.

    Note: PivotTable name must be unique within given workbook.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need a macro to copy 2 cells in an even numbered row to an odd numbered row
    By shadowamc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2014, 11:18 PM
  2. Creating a Master / Consolidated Pivot Tables from a multiple pivot tables
    By paradise2sr in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-12-2013, 02:28 AM
  3. Creating a Master / Consolidated Pivot Tables from a multiple pivot tables
    By paradise2sr in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-08-2013, 10:49 PM
  4. Pivot Tables - need to do separate pivot tables for multiple sheets in same format
    By tconnell1965 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 07:04 AM
  5. Replies: 3
    Last Post: 08-21-2013, 05:12 PM
  6. Validating Data Between 2 Pivot Tables (Pivot Tables Don't Line Up)
    By JohnGC84 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-18-2013, 05:07 PM
  7. Replies: 0
    Last Post: 09-22-2012, 07:22 PM
  8. [SOLVED] Duplicate Pivot Tables vs. Unique Pivot Tables
    By keithfender in forum Excel General
    Replies: 3
    Last Post: 07-11-2012, 10:35 AM

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