+ Reply to Thread
Results 1 to 3 of 3

Macro button to refresh pivot on different sheet in excel

  1. #1
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    137

    Macro button to refresh pivot on different sheet in excel

    Hi

    I have recorded a macro that will refresh a pivot on sheet1, however when i run this macro from sheet2, the code brings up an error.

    Is there anyway I can sort this?

  2. #2
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: Macro button to refresh pivot on different sheet in excel

    Hi! Just add this code to a Module and it will refresh all your Pivot Tables in the Workbook:

    Please Login or Register  to view this content.
    excelbat.com: free Excel tools, macros...

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Macro button to refresh pivot on different sheet in excel

    In case you don't want to refresh every pivot table in your workbook, if the name of sheet 2 is "Sheet 2" (with the space between sheet and 2) then you can use this:

    Please Login or Register  to view this content.
    You can adjust the name to fit whichever worksheet or pivot table you want to refresh.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

+ 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. Replies: 5
    Last Post: 05-20-2014, 11:24 AM
  2. Redirect Excel to a Macro when the button 'Refresh All' is pressed
    By Pommy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2014, 11:20 AM
  3. Excel 2010 Macro Refresh Pivot and Formulas
    By cajodonn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2013, 12:06 PM
  4. Button to refresh a pivot table in Worksheet
    By sqledge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2011, 03:05 AM
  5. Macro to Allow Refresh of a Pivot Table in a Protected Sheet
    By gavin0311 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2011, 02:32 PM
  6. Button to Refresh to All Pivot Tables
    By manny_cb in forum Excel General
    Replies: 3
    Last Post: 07-18-2008, 01:32 PM
  7. Replies: 2
    Last Post: 02-10-2006, 12:31 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