I see here how to create a PivotTable on the same sheet as the source data, like so:
int index = pivotTables.Add("=A1:C8", "E3", "PivotTable2");
The first arg ("=A1:C8")
is the source data to extract, the second ("E3")
is the cell that will serve as the NW corner of the PivotTable - on the same sheet.
I need to put my PivotTable on a separate sheet (and then hide the source data tab altogether).
How can I specify that the second argument is on another sheet?