title: Append new row to excel file using phpExcel library
body: <p>I am new to php as well to <code>phpExcel</code> . I just want to save post data to a existing excel sheet every time to  a new row. </p>
  
  <p>As i searched on <a href="http://stackoverflow.com">Stackoverflow.com</a> i got the reference of library <code>phpExcel</code>. </p>
  
  <p>I write down the following code from taking some samples. </p>
  
  <pre><code>&lt;?php 
  
  /** Include PHPExcel */
  require_once 'Classes/PHPExcel.php';
  
  $objPHPExcel = new PHPExcel();
  
  $objPHPExcel-&gt;setActiveSheetIndex(0);
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('A'.$row, $_POST['name']);
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('B'.$row, $_POST['email']);
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('C'.$row, $_POST['phone']);
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('D'.$row, $_POST['city']);
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('E'.$row, $_POST['kid1']);
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('F'.$row, $_POST['kid2']);
  $objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
  $objWriter-&gt;save('myfile.xlsx');    
  
  ?&gt;
  </code></pre>
  
  <p>but the problem i am facing that i don't have idea how to append new row to excel sheet so every time posted data saved to new row. </p>
  
  <p>I know my this code is only saving file to disk everytime with a single row, but i need to append new row to last excel sheet. </p>