+ Reply to Thread
Results 1 to 5 of 5

Macros to COPY pivot table selection in another pivot table

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    42

    Macros to COPY pivot table selection in another pivot table

    Hello

    I have 3 pivot tables on one spreadsheet, when i choose an option in the first pivot table, i want all the other 2 pivot tables to automatically copy what i chose in the first pivot table.

    see screenshot where first pivot table starts at row 303, i select email, my next pivot table which would be in row 403 should have the same option selected (email) and so on


    can a macros do this? the rows the pivot tables in are always static and list of choices are also static

    logic: if pivot table in row 303 = some option, then pivot table in rows 403 and 503 = this option in 303sample.png

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macros to COPY pivot table selection in another pivot table

    Your image suggest you don't have Excel 2003 as your profile indicates.

    If you have Excel 2010 or later, you could use the Slicer feature. Here's a step-by-step guide.
    Excel – Rein In the Dueling Pivot Table
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    11-16-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Macros to COPY pivot table selection in another pivot table

    thanks for the link! i see it only allows me to connect 2 tables, i actually have a 3rd table on my sheet, any way i can link all 3 tables together so that whatever i change in the first pivot table, the other 2 follow?

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macros to COPY pivot table selection in another pivot table

    Make more than one slicer.

  5. #5
    Registered User
    Join Date
    11-16-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Macros to COPY pivot table selection in another pivot table

    do you have an example of this? i tried multiple slicers but each slicer only pertains up to 2 pivot tables, if i want 4 pivot tables for example to follow what i select in the first pivot table will that be possible?

+ 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. Identify table, Get Pivot, Copy the pivot table to new consolidated Sheet
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2013, 04:09 AM
  2. Match selection in 1st pivot table with 2nd pivot table.
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2013, 06:33 AM
  3. Replies: 12
    Last Post: 08-23-2012, 08:16 AM
  4. Using Macros - info from sheet go into a Pivot Table - how Can I hide the Pivot Table?
    By traceylreed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 09:54 AM
  5. Replies: 1
    Last Post: 04-12-2010, 01:01 PM

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