Hi All,
I have created Pivot table by code stage. now I have to add one of the field from it in row and values.
when I record macro I get
Range("B5").Select
ActiveSheet.PivotTables("PivotTable").AddDataField ActiveSheet.PivotTables( _
"PivotTable").PivotFields("Case Comment Created By"), _
"Count of Case Comment Created By", xlCount
With ActiveSheet.PivotTables("PivotTable").PivotFields( _
"Case Comment Created By")
.Orientation = xlRowField
.Position = 1
End With
can someonehelp me to create code for it
Thank you in advance
------------------------------
Rohini Patil
Member technical
ADP
Asia/Kolkata
------------------------------