Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]() 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 use the following formula: =getpivotdata(SummaryPivot, "TEST") I think it's because the name does not reference an actual cell within the PT, just the PT object itself? Why is this? What's the best way to get around this? I'll be placing this function within a VBA procedure so don't really want to have to define an additional name? The following is my code that creates/names the pivot in the first place, if it helps? ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _ rng).CreatePivotTable TableDestination:="", _ TableName:="SummaryPivot" Thanks, Adrian -- Kobayashi ------------------------------------------------------------------------ Kobayashi's Profile: http://www.excelforum.com/member.php...nfo&userid=871 View this thread: http://www.excelforum.com/showthread...hreadid=276231 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table services | Excel Discussion (Misc queries) | |||
Pivot Table problem | Excel Discussion (Misc queries) | |||
How to create a calculated field formula based on Pivot Table resu | Excel Discussion (Misc queries) | |||
pivot table multi line chart | Charts and Charting in Excel | |||
Problem with Pivot Table Drop-Down Menus | Excel Worksheet Functions |