K
Kobayashi
I have a pivot table that I create with code and name 'SummaryPivot'
However, could somebody please explain why I get an error when I us
the following formula:
=getpivotdata(SummaryPivot, "TEST")
I think it's because the name does not reference an actual cell withi
the PT, just the PT object itself? Why is this? What's the best way t
get around this? I'll be placing this function within a VBA procedur
so don't really want to have to define an additional name?
The following is my code that creates/names the pivot in the firs
place, if it helps?
ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
rng).CreatePivotTable TableDestination:="", _
TableName:="SummaryPivot"
Thanks,
Adria
However, could somebody please explain why I get an error when I us
the following formula:
=getpivotdata(SummaryPivot, "TEST")
I think it's because the name does not reference an actual cell withi
the PT, just the PT object itself? Why is this? What's the best way t
get around this? I'll be placing this function within a VBA procedur
so don't really want to have to define an additional name?
The following is my code that creates/names the pivot in the firs
place, if it helps?
ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
rng).CreatePivotTable TableDestination:="", _
TableName:="SummaryPivot"
Thanks,
Adria