Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bobby,
I think that you may need to change the existing PivotTables' PivotCache, rather than using the Wizard method. Try this code to see if it works better for you: For Each ws In ActiveWorkbook.Worksheets For Each pt In ws.PivotTables tmp = pt.SourceData tmp1 = Replace(tmp, "2011-2012", "2012-2013") pt.ChangePivotCache ActiveWorkbook. _ PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _ tmp1, Version:=xlPivotTableVersion14) tmp = "" tmp1 = "" Next pt Next ws |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open file with a Pivottable Protected | Excel Programming | |||
Cannot open PivotTable source file error fix | Excel Programming | |||
Linked File Calcuation req. source file to be open | Excel Discussion (Misc queries) | |||
** Links don't update UNLESS source file is open | Links and Linking in Excel | |||
pivot table error:Cannot open PivotTable Source file!!!!!!!! | Excel Programming |