+ Reply to Thread
Results 1 to 12 of 12

Auto Refresh Pivot Chart

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Auto Refresh Pivot Chart

    I have a Pivot Chart created in the same sheets.
    I want the chart to be auto-updated each time the data is updated.

    Tried
    Please Login or Register  to view this content.
    and it works but all other worksheet in the same workbook will be updated too.

    What should be the VBA code to have only a particular Pivot Chart auto refresh?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Auto Refresh Pivot Chart

    Refresh the pivot so that chart will get refreshed.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Auto Refresh Pivot Chart

    How can I have the pivot auto refreshed using VBA?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

  5. #5
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Auto Refresh Pivot Chart

    I have this VBA code in the module:

    Please Login or Register  to view this content.
    When the search button was clicked, the Excel data will be updated and the Pivot Chart created using this data range will auto-updated as well.
    But "ThisWorkbook.RefreshAll" will update my other Pivot Chart in other sheets which I want to avoid.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Auto Refresh Pivot Chart

    Replace thisworkbook.refreshall code with the below

    Please Login or Register  to view this content.
    Change the sheet name and Pivot Table name accordingly.

  7. #7
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Auto Refresh Pivot Chart

    Thanks.
    If I am not wrong, this code only applied if you have both the data and pivot chart in different sheets and it won't work if both in the same sheet.

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Auto Refresh Pivot Chart

    It works wherever it is... The thing is that you have to mention your pivot table name in that code.

  9. #9
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Auto Refresh Pivot Chart

    Ok.let me try again as I am seeing error message

    Please Login or Register  to view this content.

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Auto Refresh Pivot Chart

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  11. #11
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Auto Refresh Pivot Chart

    I keep getting the error message.
    My pivot chart name - PivotTable2
    Sheet name - sPCE

    Capture.JPG

  12. #12
    Forum Contributor
    Join Date
    02-23-2015
    Location
    SG
    MS-Off Ver
    MS Excel 2019 & 365
    Posts
    241

    Re: Auto Refresh Pivot Chart

    Please refer to the sample file, I want the chart automatic update as well when the search button clicked.
    Can anyone help? Thanks in advance.
    Attached Files Attached Files

+ 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. Pivot Table Auto Refresh
    By Brian Matlack in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2011, 05:29 PM
  2. Auto Refresh Pivot Tables
    By Marcus Hartley in forum Excel General
    Replies: 2
    Last Post: 06-03-2007, 12:49 PM
  3. Auto-refresh pivot table?
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 04-18-2006, 05:35 PM
  4. [SOLVED] Pivot Tables -- Auto Refresh
    By Aastha in forum Excel General
    Replies: 1
    Last Post: 03-30-2006, 03:15 PM
  5. Pivot Auto Refresh Help Needed
    By jgp_2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2005, 04:44 PM
  6. [SOLVED] Auto Refresh a Pivot Table
    By Jonathan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2005, 08:05 AM
  7. auto refresh of pivot table
    By Luc Poppe in forum Excel General
    Replies: 9
    Last Post: 09-10-2005, 01:05 PM
  8. Pivot Table - Auto Refresh
    By mdalby in forum Excel General
    Replies: 1
    Last Post: 04-11-2005, 08:14 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