+ Reply to Thread
Results 1 to 4 of 4

Auto-Refresh of Pivot Table when Data Set is Changed?

  1. #1
    Registered User
    Join Date
    10-25-2023
    Location
    Philadelphia, PA, USA
    MS-Off Ver
    MS Office Home and Student 2016
    Posts
    2

    Question Auto-Refresh of Pivot Table when Data Set is Changed?

    Hello!

    I have a table in one of my sheets called Table1. It spans X1:Y21. I created a pivot table based off of this table in another sheet within the same workbook.

    Is there any way to have the pivot table refresh every time ANY of the data within Table1 is changed? For example, if I manually change an amount in that table, I would like the pivot table to automatically refresh the data and reflect that immediately.

    I haven't been able to find any info on this- I keep seeing options to refresh pivot tables manually or upon opening the workbook. I need it to refresh as data is being changed without having to manually click that refresh button on the ribbon.


    Any help is appreciated. Thank you!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Auto-Refresh of Pivot Table when Data Set is Changed?

    You need to set up a change event in VBA on the page that contains the data source table. That's all I can provide without actually having a sample workbook.

    If you are using an actual Excel Table, you can empty it of all proprietary data and throw in sample data. The code can be copied back to your original sheet and it should still work.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Auto-Refresh of Pivot Table when Data Set is Changed?

    a pivot table based off of this table in another sheet
    a change event in VBA on the page that contains the data source table.
    I think you can also make a VBA on opening the other sheet.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Auto-Refresh of Pivot Table when Data Set is Changed?

    Good Idea, @popipipo: an On open event of the sheet that contains the pivot table is a cleaner implementation. The user can make multiple changes in the data without running any code and then the code is only run when the pivot table sheet is activated. Thanks for suggesting it.

+ 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. Auto refresh pivot table with linked data
    By bt123123 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-12-2018, 10:59 PM
  2. Replies: 4
    Last Post: 02-15-2018, 09:42 AM
  3. Auto-Refresh Pivot Table When Source Data Refreshes
    By XLINT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2015, 11:00 AM
  4. [SOLVED] Auto Refresh Pivot Table Once External Data source Changes
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2012, 10:33 AM
  5. Pivot Table Auto Refresh after filter has changed
    By pauldaddyadams in forum Excel General
    Replies: 0
    Last Post: 01-27-2012, 11:32 AM
  6. import data from access table to excel pivot table - Enable Auto Refresh
    By okl in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-01-2010, 09:38 AM
  7. [SOLVED] suppress the message 'refresh operation changed the pivot table'
    By peterhine21 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2006, 12:35 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