Hi,
I am automating a pivot table and I want more than 1 data fields. For the row fields it accepts an array:
pt.AddFields RowFields:=Array("GPProject", "Department",)
But it won't accept that for the data fields, below is the code for a single field
pt.AddDataField...