View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] davidhwang@usa.com is offline
external usenet poster
 
Posts: 2
Default Accessing data in pivot tables

Hi, I'm trying to access data sitting inside a pivot table. When I
record a macro, it uses the GETPIVOTDATA function.

ActiveCell.FormulaR1C1 = _
"=GETPIVOTDATA(""MR#"",R10C2,""Biopsy Year"",1993,""family
hx2"",""U"")/GETPIVOTDATA(""MR#"",R10C2,""Biopsy Year"",1993)"

Is there a more direct way to access the data without having to set the
value within another cell?

David