Hello experts,
a little new at this but i have done all the research i can and cannot pinpoint the solution.
i would like to build a macro to create a pivot table on a data set that grows in length each week. The part i am having trouble with is having the pivot table include the entire data set each time. The SourceData section stays static at "Sheet1!R1C1:R26958" instead of including the new table size.
thoughts? Thank you in advance!ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _ "Sheet1!R1C1:R26958", Version:=xlPivotTableVersion14).CreatePivotTable _ TableDestination:="Sheet2!R3C1", TableName:="PivotTable1", DefaultVersion _ :=xlPivotTableVersion14