+ Reply to Thread
Results 1 to 5 of 5

Pivot table does not refresh automatically.

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    9

    Pivot table does not refresh automatically.

    Hello,

    I have a pivot table and I have a macro to refresh that pivot table. When I add a new line with information to the source sheet, the pivot table does not refresh automatically after running the macro. However if I manually refresh the pivot table using <right click> + refresh, the pivot table refreshes with new information.

    Has anyone faced such an issue.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Pivot table does not refresh automatically.

    Where is the macro? Is in the module? If it is, probably try to move it to source data sheet.

  3. #3
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Pivot table does not refresh automatically.

    Would it really matter if the macro is in module or in the source data sheet. One thing I have noticed is, even though the source data is same for multiple pivots, I need to manually refresh each pivot. I do not think this should be a case normally.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Pivot table does not refresh automatically.

    Yes, it would. You want it to refresh authomatically, so it has to be an event triggered event, otherwise you run it as a normal module. The event is a change you make to your source data. If you wish to refresh more than one pivot source, you need to put your code in to "This workbook". Try this code. Put it in the sheet name- source data. The pivot will refresh automatically when ever you make any change in your source data.

    Please Login or Register  to view this content.
    Please adjust the code as per your data, or change the name of your table to ("PivotTable1").

  5. #5
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Pivot table does not refresh automatically.

    Thanks. it worked.

+ 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