C
celia
I have this formula in:
For (B8:E8)
1. Column B8 GETPIVOTDATA("Sum of Normal",[Book5.xls]PT_PD1!$H$1,"JOB
NO.",9907)
2. C8 GETPIVOTDATA ("Sum of OT1",[Book5.xls]PT_PD1!$H$1,"JOB
NO.",9907)
3. D8 GETPIVOTDATA("Sum of OT2",[Book5.xls]PT_PD1!$H$1,"JOB NO.",9907)
4. E8 GETPIVOTDATA("Sum of OT3",[Book5.xls]PT_PD1!$H$1,"JOB NO.",9907)
5. E8 GETPIVOTDATA("Sum of OT4",[Book5.xls]PT_PD1!$H$1,"JOB NO.",9907)
For (B9:E9)
the data field change from "Sum of Normal" to "Sum of OT1" and pivot
table "PT_PD1" to "PT_PD2"
And I need to use the formulas for 50 rows.
At the moment I have to manually change and insert the formula but it
might a problem in the future when I need to GetpivotData for more
items.
Is there anyway of creating macro to include the formula
(GETPIVOTDATA)?
Any help?
Thanks
For (B8:E8)
1. Column B8 GETPIVOTDATA("Sum of Normal",[Book5.xls]PT_PD1!$H$1,"JOB
NO.",9907)
2. C8 GETPIVOTDATA ("Sum of OT1",[Book5.xls]PT_PD1!$H$1,"JOB
NO.",9907)
3. D8 GETPIVOTDATA("Sum of OT2",[Book5.xls]PT_PD1!$H$1,"JOB NO.",9907)
4. E8 GETPIVOTDATA("Sum of OT3",[Book5.xls]PT_PD1!$H$1,"JOB NO.",9907)
5. E8 GETPIVOTDATA("Sum of OT4",[Book5.xls]PT_PD1!$H$1,"JOB NO.",9907)
For (B9:E9)
the data field change from "Sum of Normal" to "Sum of OT1" and pivot
table "PT_PD1" to "PT_PD2"
And I need to use the formulas for 50 rows.
At the moment I have to manually change and insert the formula but it
might a problem in the future when I need to GetpivotData for more
items.
Is there anyway of creating macro to include the formula
(GETPIVOTDATA)?
Any help?
Thanks