+ Reply to Thread
Results 1 to 2 of 2

How to run a macro to get data from a pivot table with a changing tab name

  1. #1
    Registered User
    Join Date
    06-07-2018
    Location
    United States
    MS-Off Ver
    2016
    Posts
    1

    How to run a macro to get data from a pivot table with a changing tab name

    I am trying to create a macro to run a report from a pivot table, but the name of the pivot table changes everything the pivot is created. Is there a VBA code to create a pivot table and name the tab once the pivot is created and a code to reference that tab to run a report?

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: How to run a macro to get data from a pivot table with a changing tab name

    I think this should be in the VBA/ excel section?

    I'm thinking you just want to loop through every sheet and every pivot table and identify the one you want by some aspect of it like it's feilds then if it is the one you want then "do something".
    all this assumes there are other pivots in the sheet and that the pivot has no naming convention - otherwise this becomes easy.

    Please Login or Register  to view this content.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

+ 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 filter not changing data in table - Using macro
    By DJDRU in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-09-2016, 06:16 AM
  2. [SOLVED] Changing Pivot Table Through Macro
    By marioggf21 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-24-2015, 07:03 AM
  3. Changing Pivot Table Through Macro
    By marioggf21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2015, 04:32 AM
  4. Changing Data in Pivot Table Macro
    By sherryE in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2014, 09:29 AM
  5. [SOLVED] Changing dates in a Pivot Table using a Macro
    By peter_caswell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2012, 02:58 AM
  6. [SOLVED] changing Pivot table name via macro
    By Sandip in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2006, 11:40 AM
  7. [SOLVED] Changing a pivot table page or data set by using a macro
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2005, 08:05 PM

Tags for this Thread

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