+ Reply to Thread
Results 1 to 2 of 2

Refresh Multipe Pivot Table Macro

Hybrid View

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    24

    Refresh Multipe Pivot Table Macro

    I am trying to write a macro to update multiple pivot tables on a mutiple tabs. Here is what I have so far. The commas between the pivot table numbers is not working. Can you help me to put this together. Thanks!

    Sheets("Question 1 pivot table").Select
    ActiveSheet.PivotTables("PivotTable2"),("PivotTable4"),("PivotTable5"),("PivotTable6"),("PivotTable8"),("PivotTable3").RefreshTable

    Sheets("Question 2 pivot table ").Select
    ActiveSheet.PivotTables("PivotTable2"),("PivotTable9"),("PivotTable10"),("PivotTable12"),("PivotTable15").RefreshTable

    Sheets("Question 3 pivot table").Select
    ActiveSheet.PivotTables("PivotTable2"),("PivotTable3"),("PivotTable4"),("PivotTable5"),("PivotTable6").RefreshTable

    Sheets("Question 4 pivot table ").Select
    ActiveSheet.PivotTables("PivotTable5"),("PivotTable6"),("PivotTable7"),("PivotTable8"),("PivotTable9").RefreshTable

    Sheets("Question 5 pivot table ").Select
    ActiveSheet.PivotTables("PivotTable1"),("PivotTable2"),("PivotTable3"),("PivotTable4"),("PivotTable5").RefreshTable

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Refresh Multipe Pivot Table Macro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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