Justinidea
Board Regular
- Joined
- Apr 7, 2010
- Messages
- 57
When I run this code to create a PivotCache, it fails after the first pivot table is created.
It hangs up on the TableName:="PivotTable1".
Can someone tell me how to reset the TableName?
Thanks!
Mike
It hangs up on the TableName:="PivotTable1".
Can someone tell me how to reset the TableName?
Code:
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Pivot_Table_Range", Version:=xlPivotTableVersion12). _
CreatePivotTable TableDestination:="Pivot", TableName:="PivotTable1" _
, DefaultVersion:=xlPivotTableVersion12
Thanks!
Mike