So I recorded a macro when I’m doing a pivot. Re ran it on a different work book with different amount of lines but same sheet name got this error highlighted in yellow…any idea what this means?
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Page1!R1C1:R45336C46", Version:=8).CreatePivotTable TableDestination:= _
"Sheet2!R3C1", TableName:="PivotTable2", DefaultVersion:=8
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Page1!R1C1:R45336C46", Version:=8).CreatePivotTable TableDestination:= _
"Sheet2!R3C1", TableName:="PivotTable2", DefaultVersion:=8