+ Reply to Thread
Results 1 to 2 of 2

Pivot Table Macro issue.

  1. #1
    Registered User
    Join Date
    12-01-2017
    Location
    New York, New York
    MS-Off Ver
    Excel 2013
    Posts
    18

    Pivot Table Macro issue.

    I am trying to create a macro to create a pivot table with the data present. I have two issues below.


    Please Login or Register  to view this content.
    Is there a way I can predetermine the name or have the count of the PivotTable names reset (so it goes back to PivotTable1 instead of PivotTable3, PivotTable4, etc.) every time I run the macro?

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Pivot Table Macro issue.

    Don't use TableName parameter in CreatePivotTable statement and it will name the Pivot Table automatically to default on the basis of next available Pivot Table Index.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Pivot Table issue
    By J.U. in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-22-2016, 11:55 AM
  2. Pivot Table & Chart with Excel VBA - issue on mAcro
    By bsguna in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-14-2016, 06:30 AM
  3. Pivot table issue, I'm not able to capture new data, when table is updated
    By johnnyq113 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-26-2015, 05:01 PM
  4. Pivot table issue?
    By Ron Purpura in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-26-2015, 11:19 AM
  5. Excel 2007 : Pivot Table issue...
    By Milehigh1 in forum Excel General
    Replies: 2
    Last Post: 06-20-2011, 10:36 AM
  6. Pivot Table Issue
    By meenugk in forum Excel General
    Replies: 13
    Last Post: 02-21-2011, 07:11 AM
  7. Pivot Table issue
    By Sionos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2007, 08:39 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