+ Reply to Thread
Results 1 to 5 of 5

Dynamically updating Pivot tables

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    Channel Islands
    MS-Off Ver
    2013
    Posts
    9

    Dynamically updating Pivot tables

    Hi
    I have a question that I've been trying solve for some time now and wondered if anyone had the answer?

    I have several worksheets in a workbook that are updated daily with the latest information; the data from these worksheet are "Pivotted" to form a summary of the information. In order to get realistic averages in one particular Pivot I filter out anything that is "0" (ie zero) however when the worksheets are updated the filter on the Pivot continues to ignore the "0" but also any number that has been subsequently added - I have to go into each Pivot filter, select "All" and then deselect "0".

    Is there any way that the Pivot can be made to IGNORE all "0" but INCLUDE and subsequent non-0 number without having to refresh the filter? This is not a big issue for me but others that use the spreadsheet often forget to do the refresh of the filter so are in danger of reporting the wrong figures

    Thanks in advance for any suggestions.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Dynamically updating Pivot tables

    Hi Wizard,

    Do you use Dynamic Named Ranges for the data source of your Pivots? I'm wondering if that is where the problem is. I create a very short Event Macro that does the Refresh All when ever the tab is selected that has the Pivot table on it. Would this work for your problem?

    The worksheet macro looks like:

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    04-25-2017
    Location
    Channel Islands
    MS-Off Ver
    2013
    Posts
    9

    Re: Dynamically updating Pivot tables

    Thanks for the suggestion Marvin. No it is not a Dynamic named range, just a fixed range that includes all the blanks that will be filled in during the year. However I shall have a think about using DNR and see if this helps.

    I'll also try your macro, though I presume at present it will only refresh the Pivot Table (which would be useful in itself) but not sort out the "filter" issue(?)
    Last edited by Wizard1001; 05-26-2017 at 11:15 AM.

  4. #4
    Registered User
    Join Date
    04-25-2017
    Location
    Channel Islands
    MS-Off Ver
    2013
    Posts
    9

    Re: Dynamically updating Pivot tables

    The DNR works great (once I'd sorted out the formula to use!), thanks again. Now to try incorporating the macro

  5. #5
    Registered User
    Join Date
    04-25-2017
    Location
    Channel Islands
    MS-Off Ver
    2013
    Posts
    9

    Re: Dynamically updating Pivot tables

    It's been a few days since I've been able to look at this again, but I've not managed to get the macro to work (I'm very much a VB novice!).

    I have put the code into the VBA, with the "Object" set as Workbook and the "Procedure" set as Activate, and saved the file as Excel Macro-Enabled Workbook, however the Pivots do not refresh when I go into the respective worksheets. I'm obviously doing something very basic in error, but not sure what - any suggestions as to what the school boy may be?

+ 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. [SOLVED] Dynamically changing several pivot tables at once
    By Jason in forum Excel General
    Replies: 4
    Last Post: 10-18-2021, 05:59 PM
  2. Dynamically Create Pivot Tables
    By sherylt13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2017, 01:58 PM
  3. [SOLVED] Dynamically use sheet names for pivot tables.
    By kleptilian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2016, 08:59 AM
  4. Excel Automation: Updating Pivot Tables, Charts, and Tables
    By Lemguin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2015, 04:25 AM
  5. [SOLVED] Dynamically updating fields in Pivot Table
    By SandPounder1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-11-2014, 04:00 PM
  6. Updating Pivot Tables Dynamically
    By JagR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2010, 04:56 AM
  7. [SOLVED] Dynamically changing print areas for Pivot Tables
    By Todd1 in forum Excel General
    Replies: 1
    Last Post: 08-16-2006, 10:00 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