Hi,
I have a file with links to external worksheets. I am aware of the fact that PHPExcel will not handle these, and this is ok for my needs, as I would like to use it to update parts of the file which do not contain the external references.
However, when trying to save the sheet and I re-open it, I will find "Err!520" instead of the external references.
I'd just like to double check if the "not handling" the external references also implies losing the formulas, or if I am missing some step in the process.
below is the code I am using
<?
require_once 'PHPExcel/Classes/PHPExcel.php';
$excel2 = PHPExcel_IOFactory::load('data/m2.xls');
PHPExcel_Calculation::getInstance()->disableCalculationCache();
$excel2->setActiveSheetIndexByName('Sheet1') ->setCellValue('C32', 'aaa');
$objWriter = PHPExcel_IOFactory::createWriter($excel2, 'Excel5');
$objWriter->save('data/m2.xls');
?>
TIA for any feedback
Andrea
I have a file with links to external worksheets. I am aware of the fact that PHPExcel will not handle these, and this is ok for my needs, as I would like to use it to update parts of the file which do not contain the external references.
However, when trying to save the sheet and I re-open it, I will find "Err!520" instead of the external references.
I'd just like to double check if the "not handling" the external references also implies losing the formulas, or if I am missing some step in the process.
below is the code I am using
<?
require_once 'PHPExcel/Classes/PHPExcel.php';
$excel2 = PHPExcel_IOFactory::load('data/m2.xls');
PHPExcel_Calculation::getInstance()->disableCalculationCache();
$excel2->setActiveSheetIndexByName('Sheet1') ->setCellValue('C32', 'aaa');
$objWriter = PHPExcel_IOFactory::createWriter($excel2, 'Excel5');
$objWriter->save('data/m2.xls');
?>
TIA for any feedback
Andrea