+ Reply to Thread
Results 1 to 2 of 2

PivotTable.Refresh woes

  1. #1
    Registered User
    Join Date
    01-31-2007
    Location
    Texas
    Posts
    2

    Question PivotTable.Refresh woes

    Given that I have a worksheet (ws1) with two PivotTables (pt1, pt2) that rely on data from three other worksheets (ws2, ws3, ws4) all in the same workbook.

    I need to be able to change data in ws2-4 and then have those changes be reflected in ws1.pt1 and ws1.pt2 .

    The best case scenario would be to right-click on a pivot table and then select the "! Refresh Data" option but for some reason this is greyed-out. Can someone tell me why this would be greyed-out?


    Other option I've tried was to add a button to each of the data worksheets (ws2--ws4) that would run the following code
    Please Login or Register  to view this content.
    However this results in the following error
    Please Login or Register  to view this content.
    Can anyone provide any insight?

  2. #2
    Registered User
    Join Date
    01-31-2007
    Location
    Texas
    Posts
    2

    Thumbs up Resolved

    After lots of trial and error, I resolved this.

    Turns out both issues were caused by the fact that something somewhere was setting the PivotCache.EnableRefresh property to False for each PivotTable. Manually setting this to True in code seems to have solved both issues.

+ 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