+ Reply to Thread
Results 1 to 2 of 2

Macro not updating Pivot Table and Chart every time

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Macro not updating Pivot Table and Chart every time

    Attached has list of daily Sales of five Products in Cols A - C, summarised in a Pivot Table and presented as a Column Pivot Graph.

    Macro should clear the existing values in Col C, pause for two seconds (for demo purposes so End user can see the change), create a new list of random numbers in Col C, refresh the Pivot Table and Pivot Graph, wait another two seconds, then repeat the process twice more.

    First cycle refreshes Table and Graph perfectly.
    Second cycle does not refresh the Pivot at all, but refreshes the Graph when the second values are cleared from Col C.
    Third cycle does not refresh the Pivot table when the third Data set is added, so for several seconds you see the third set of values in Col C, the FIRST set of values still in the Pivot Table, and the SECOND set still showing in the Graph! Table and Graph then refresh after few seconds, and everything matches.

    Please Login or Register  to view this content.

    All solution, suggestions or alternatives welcome as ever


    Ochimus
    Attached Files Attached Files
    Last edited by Ochimus; 04-27-2023 at 12:26 PM.

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Macro not updating Pivot Table and Chart every time

    Try adding DoEvents

    Please Login or Register  to view this content.

+ 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 Chart not updating data labels?
    By kjnjanx in forum Excel General
    Replies: 3
    Last Post: 04-27-2019, 04:15 AM
  2. Pivot Table not properly updating with Macro
    By Chris McGlothen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2018, 04:21 PM
  3. [SOLVED] Help with On-time Percentage (Pivot table and Chart)
    By Physicsboy in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-07-2015, 07:24 AM
  4. Pivot table not updating after running the macro
    By noobforce123 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-06-2015, 09:46 AM
  5. Updating pivot table filters through a macro has stopped working, help please
    By JasperTata in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-21-2012, 09:53 AM
  6. Pivot table and Pivot Chart - Run time error 5
    By yogananda.muthaiah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2012, 08:35 AM
  7. Run time Error 13 while updating the pivot table
    By wish2excel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-21-2010, 02:39 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