Text box in excel disapearing

Topics: Developer Forum, User Forum
Feb 12 at 3:51 PM
Hello,

In the code below I'm calling a spread sheet and sending data to a cell. I also have a test box above the cell I am writing the data to. When my program runs the data shows up in the cell but my text and text box are gone. How do I keep the text and text box on the spread Sheet?

Thanks.

<?php

/* Include PHPExcel /

require_once dirname(FILE) . '/Classes/PHPExcel.php';
require_once dirname(FILE) . '/Classes/PHPExcel/IOFactory.php';

$objPHPExcel = PHPExcel_IOFactory::createReader('Excel2007');
$objPHPExcel = $objPHPExcel->load('ceuform.xlsx');
$objPHPExcel->setActiveSheetIndex(0);
$objPHPExcel->getActiveSheet()->setCellValue('C14', "My Data");
$objwriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
$objwriter->save('ceuform.xlsx');
echo "DONE";
exit;
?>