+ Reply to Thread
Results 1 to 17 of 17

Changing specific pivot tables at once Excel 2010

  1. #1
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Changing specific pivot tables at once Excel 2010

    Hi Everyone, (first post!)

    It would be fantastic if someone could help me solve my issue. I am working on a excel sheet that has 100+ pivot tables across all sheets (large database). One filter element is the same throughout the data and it is referring to a time period- 01 April 2008, 02 April 2008 and so on. Up to know I have been able to have all data in the tables change when one is changed but now I need it to just change in specific pivot tables for comparison within a specific sheet.

    If someone has any tips on how to do this it would make my life a hell of a lot easier!
    Many Thanks,
    Lee

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing specific pivot tables at once Excel 2010

    have you tried attaching a slicer to just the tables you want filtered?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Changing specific pivot tables at once Excel 2010

    I did try to do this but it would not allow the tables to link up with each other, also there are 30+ tables that are to be linked to one another. I was hoping for a VBA solution to this which will update all of the 30+ tables together.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing specific pivot tables at once Excel 2010

    how are you doing it currently? assuming you are using code, why not post it-it can then most likely be altered to only affect specific pivot tables

  5. #5
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Changing specific pivot tables at once Excel 2010

    The code I currently use to change all pivots in the selected sheet is this :

    Please Login or Register  to view this content.
    Last edited by Fotis1991; 09-17-2013 at 12:06 PM. Reason: added code tags.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing specific pivot tables at once Excel 2010

    the code would be basically the same except rather than
    Please Login or Register  to view this content.
    you would need to test the pivot table name
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Changing specific pivot tables at once Excel 2010

    I am confronted with a compile error at the end of the debug "End If without Block If", any suggestions ? the rest of the code does not provide a error so I assuming it will work

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing specific pivot tables at once Excel 2010

    what is your current code? you have presumably left in the End If line for the If... clause that was replaced by the Select Case

  9. #9
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Changing specific pivot tables at once Excel 2010

    The code is :
    Please Login or Register  to view this content.
    If I remove the End If it then provides an error for the "Next" underneath.
    Last edited by Fotis1991; 09-17-2013 at 12:05 PM. Reason: Added code tags around your code

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing specific pivot tables at once Excel 2010

    Please Login or Register  to view this content.
    oughta be
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Changing specific pivot tables at once Excel 2010

    Cheers Joseph! The code works. I have one last issue, when I apply the code to another sheet it tells me a PivotTable Report cannot overlap another Pivot Table report, is there a way around this?

  12. #12
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing specific pivot tables at once Excel 2010

    don't put your pivot tables so close together ;-)

  13. #13
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Changing specific pivot tables at once Excel 2010

    The error does not occur with the original code i used though? And I have tried spacing the pivots out but it still provides this error

  14. #14
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing specific pivot tables at once Excel 2010

    you would only get the error if the pivot table tries to expand to overlap another pivot table. without your workbook I can't see why one code would cause that if the other did not

  15. #15
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Changing specific pivot tables at once Excel 2010

    I believe that the issue lies in the data, I need it to change only a key field in all of the pivots, this being the date. When I change the current data it turns the pivot to all and that is why it overlaps. Is there a way to isolate the other fields from changing? apart from the date?

    Moderator Note:

    Pls use code tags around your code next time as per forum rules.
    Last edited by Fotis1991; 09-17-2013 at 12:07 PM.

  16. #16
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing specific pivot tables at once Excel 2010

    if you only want to change one page field there is no need to loop through all of them
    Please Login or Register  to view this content.

  17. #17
    Registered User
    Join Date
    09-16-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Changing specific pivot tables at once Excel 2010

    Can I PM you with the test document in order for assistance?

+ 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. Date formats in pivot tables using power pivot in Excel 2010.
    By myobreportguru in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-25-2013, 10:21 PM
  2. [SOLVED] Excel 2010 Pivot Tables
    By Bigmal70 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-16-2012, 05:27 AM
  3. Excel 2010: Changing Source data on multiple pivot tables
    By dcoates in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-24-2012, 03:42 PM
  4. Excel 2010 Pivot Tables
    By mmilewska in forum Excel General
    Replies: 2
    Last Post: 05-28-2012, 06:15 PM
  5. EXCEL 2010 PIVOT TABLES - selecting data fields
    By hennis001 in forum Excel General
    Replies: 0
    Last Post: 07-06-2011, 10:45 AM

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