How can I create a PivotChart using VBA? I ran the macro recorder, and it referred to the source data in the standard way:
ActiveChart.SetSourceData Source:=Range("'sheet1'!$A$3:$C$25")
How do I create a chart that is specifically a PivotChart, referring to a PivotTable as a source, so that when the PT updates, so does the PC?
Seems like it should be a simple solution, but I have had no luck with this.
Thanks in advance!
PS I am using Excel 2007, but I don't think that should matter
ActiveChart.SetSourceData Source:=Range("'sheet1'!$A$3:$C$25")
How do I create a chart that is specifically a PivotChart, referring to a PivotTable as a source, so that when the PT updates, so does the PC?
Seems like it should be a simple solution, but I have had no luck with this.
Thanks in advance!
PS I am using Excel 2007, but I don't think that should matter