+ Reply to Thread
Results 1 to 9 of 9

Prevent pivot table from refreshing

  1. #1
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Prevent pivot table from refreshing

    Hi,

    My workbook contains several pivots from different sources. On one pivot I've deleted the source therefore the data is all in the cache. My problem is that when I refresh the workbook I get an annoying "Cannot open pivot table source file". Is there an simple way of preventing that specific pivot table from refreshing when all the others are ? Any help would be appreciated !

    Thanks
    amphinomos

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Prevent pivot table from refreshing

    You may try:
    Please Login or Register  to view this content.
    You must change sheet and table names.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Prevent pivot table from refreshing

    Protect the worksheet containing that pivot table.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: Prevent pivot table from refreshing

    Hi Izandol,

    Many thanks for your answer. I was thinking of doing a for loop if ever I had pivot tables. I get an error though with the code below (apologies if this looks like gibberish I'm still on my way learning vba) :

    Please Login or Register  to view this content.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Prevent pivot table from refreshing

    Please Login or Register  to view this content.
    instead of this:
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: Prevent pivot table from refreshing

    Thanks again Izandol. I still get an error despite that I corrected pt to a PivotTable object.

    Please Login or Register  to view this content.

  7. #7
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Prevent pivot table from refreshing

    Oh I have missed this:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: Prevent pivot table from refreshing

    Perfect Izandol. Thanks again !

  9. #9
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Prevent pivot table from refreshing

    You are welcome.

+ 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 not refreshing
    By Zealotwraith in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-18-2013, 12:02 PM
  2. Problems with refreshing pivot table
    By Monique Rebanks in forum Excel General
    Replies: 3
    Last Post: 04-05-2010, 01:29 PM
  3. Refreshing Pivot Table
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2009, 04:59 PM
  4. Pivot table is not refreshing problem
    By ghislain in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-10-2005, 12:05 PM
  5. [SOLVED] Refreshing a pivot table
    By Louise in forum Excel General
    Replies: 2
    Last Post: 05-23-2005, 09:06 AM

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