Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
getPivotData
I am trying to use a variable in the GetPivotData function and I keep getting
#REF error. Here is my syntax: Cells(lRow, 5).Select ActiveCell.FormulaR1C1 = _ "=GETPIVOTDATA(""Sum of xfers"",Pivot_table!R3C1,""day"",DATE(2005,3,29)" When I try: Cells(lRow, 5).Select ActiveCell.FormulaR1C1 = _ "=GETPIVOTDATA(""Sum of xfers"",Pivot_table!R3C1,""day"",temp3)" using temp3, a variable holding a date, it gives me a #REF error. Can I not use variables here? What can I do to make this dynamic? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
GETPIVOTDATA | Excel Discussion (Misc queries) | |||
GETPIVOTDATA | Excel Discussion (Misc queries) | |||
Getpivotdata | Excel Discussion (Misc queries) | |||
GETPIVOTDATA | Excel Worksheet Functions | |||
GETPIVOTDATA | Excel Worksheet Functions |