H
hiunnati
Hi,
What is the exact code which will give me Sum instead of Count for
Pivot Field?
I have used following code but it gave me error
Sheets("Summary").PivotTables("PivotTable1").PivotFields("Duration").Orientatio
= xlDataField
Sheets("Summary").PivotTables("PivotTable1").PivotFields("Duration").Functio
= xlSum
I got the following error
Run-time error '1004'
Unable to set the Function property of the PivotField class
Can you help me?
Regard
What is the exact code which will give me Sum instead of Count for
Pivot Field?
I have used following code but it gave me error
Sheets("Summary").PivotTables("PivotTable1").PivotFields("Duration").Orientatio
= xlDataField
Sheets("Summary").PivotTables("PivotTable1").PivotFields("Duration").Functio
= xlSum
I got the following error
Run-time error '1004'
Unable to set the Function property of the PivotField class
Can you help me?
Regard