+ Reply to Thread
Results 1 to 2 of 2

Changing Pivot Table Source- Code Created Files Require Manual Refresh Each Time Opened

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    49

    Changing Pivot Table Source- Code Created Files Require Manual Refresh Each Time Opened

    I have a master pivot table. I need to break it into a bunch of smaller tables so that every manager only gets his details without being able to see anybody else's data
    I figured instead of coding pivot table creation from scratch- I'll just copy Summary and Data tabs into a new sheet, delete all the information that does not belong to a particular manager, point pivot cache to a new range, save and repeat for how many managers I have.
    I did that and a weird thing happened. When I open a file my code creates, whenever I try to manipulate the pivot - I get a message "The PivotTable was saved without the underlying data. Use the Refresh Data command to update the report". once I refresh Data- everything works fine, I am able to drill and the pivot range is accurate. I re-save the file but once I open - same story- "no underlying data message" again....
    I googled and somebody was suggesting updating Pivot cache before closing instead of refreshing- I tried that too...

    Can somebody please help?
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    04-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Changing Pivot Table Source- Code Created Files Require Manual Refresh Each Time Ope

    I think I figured it out, this is what worked for me - adding those two lines before saving:

    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. Replies: 1
    Last Post: 12-04-2014, 04:13 PM
  2. Can't Refresh Pivot Table When Using External Data Source
    By yenping.fu in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-02-2014, 06:24 AM
  3. Replies: 0
    Last Post: 08-14-2013, 06:31 AM
  4. [SOLVED] Auto Refresh Pivot Table Once External Data source Changes
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2012, 10:33 AM
  5. [SOLVED] Refresh of pivot column filter dropdowns when changing the source data
    By rmg08057 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-05-2012, 08:25 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