I have created pivot table using macro recording as I don't know much more about programming. I want to copy the whole pivot into a new sheet. and delete the old sheet. what is the macro I need to add.
I am getting error while shifting pivot to other sheet
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Data!R1C1:R65536C3", Version:=xlPivotTableVersion10).CreatePivotTable _
TableDestination:="Sheet5!R3C1", TableName:="PivotTable3", DefaultVersion _
:=xlPivotTableVersion10
Advance thanks for your help.