LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Updating pivot tables after creating file

Hi everyone,

I have a source workbook from which I'm extracting the data for a
given sales manager and saving the data under their own workbook name.
The pivot table is created from a template worksheet. So all I'm
really doing is just redefining the data range for the pivot table and
refreshing it. The problem is that if I try to double click a value to
get the drill-down, I get the following message:

The Pivot table report was saved without hte underlying data. Use the
Refresh Data command to update the report.

My VBA code is:

templateWb.WorkSheets("Pivots").PivotTables("Pivot Temp").ChangePivotCache
templateWb.PivotCaches.Create(SourceType:=xlDataba se,
SourceData:=pivotRange)

templateWb.WorkSheets("Pivots").PivotTables("Pivot Temp").PivotCache.Refresh
templateWb.SaveAs ....

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Pivot Tables via VBA klysell Excel Programming 1 August 11th 07 05:42 PM
Updating pivot items on 3 pivot tables contained on one sheet klysell Excel Programming 2 August 9th 07 07:00 PM
Updating pivot items in three pivot tables on one sheet via VBA klysell Excel Programming 0 August 8th 07 07:20 PM
Creating Pivot Tables using a CSV file Felippe Domingos Excel Discussion (Misc queries) 1 February 7th 07 10:33 PM
updating pivot tables jgibbings Excel Discussion (Misc queries) 3 May 9th 05 11:02 PM


All times are GMT +1. The time now is 12:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"