Hi everyone,
i read a half dozen threads now trying to figure out why my simple, "delete old pivot table then add new pivot table" macro is returning runtime error 5.
This seems to be one of the recognized issues with XL'07, but i thought i'd put mine out there for assistance and guidance.
The error stems from this point right here.
the error reads: invalid procedure call or argument.
Any help would be greatly appreciated,
Thanks,
HK
i read a half dozen threads now trying to figure out why my simple, "delete old pivot table then add new pivot table" macro is returning runtime error 5.
This seems to be one of the recognized issues with XL'07, but i thought i'd put mine out there for assistance and guidance.
Code:
Columns("A:A").Select
Selection.Delete Shift:=xlToLeft
Selection.Insert Shift:=xlToRight
Range("A1").Select
[COLOR="Red"] ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Compiled List!R1C1:R5985C7", Version:=xlPivotTableVersion12). _
CreatePivotTable TableDestination:="'Upcoming and Current List'!R1C1", _
TableName:="PivotTable3", DefaultVersion:=xlPivotTableVersion12[/COLOR]
The error stems from this point right here.
the error reads: invalid procedure call or argument.
Any help would be greatly appreciated,
Thanks,
HK