UPDATE:
Just tested this scenario with PHPExcel 1.7.8 and it is still not working. Pivot tables in sheets that are not actively touched through PHPExcel simply vanish and what is left is the old numbers surrounded by borders.
I have an Excel 2007 workbook with two sheets:
dashboard
data
In 'data' there is just an aggregation of tabular organized data and in 'dashboard' is
a simple chart
and a pivot table based on the data in 'data'.
What I want to do is update the data in the 'data' sheet using PHPExcel. So far no problem. But when I open the workbook again, the chart is gone and the pivot table turned into a simple formatted table.
I am not touching the 'dashboard' sheet at all and tried so far different things to work around that issue, f.x.:
deleting 'data', creating a new 'data' and fill in the figures
PHPExcel::setIncludeCharts(true)
I think this behaviour is weird. Apart from that PHPExcel is working fine.
EDIT:
Another work around I just applied is to store the data in a separate workbook. Then the pivot table within the second workbook is successfully updated. But I would like to store that data in the same workbook as the user interface just on a separate sheet.