title: PHPExcel: background colour of cells is changing
body: <p>I have an Excel template that I need to fill out in php script. Table's headers are highlighted with different colours:</p>
  
  <p><a href="https://i.stack.imgur.com/SYZfp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SYZfp.png" alt="enter image description here"></a></p>
  
  <p>In php script I open template, add some data and save file:</p>
  
  <pre><code> //Template from VitalSource
      $template = APPLICATION_PATH.'/../public/VitalSourceTemplate.xlsx';
  
      // Read the file
      $fileType = PHPExcel_IOFactory::identify($template);
      $objReader = PHPExcel_IOFactory::createReader($fileType);
      $objPHPExcel = $objReader-&gt;load($template);
  
  
      $objPHPExcel-&gt;setActiveSheetIndex(0);
      $row = 4;
  
      /*
         Add new rows to the Excel file
      */
  
  // Write the file
      $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, $fileType);
      $objWriter-&gt;save('testVS.xlsx');
  </code></pre>
  
  <p>Data is here, the only problem is that header colours are changing:</p>
  
  <p><a href="https://i.stack.imgur.com/ZWHa7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZWHa7.png" alt="enter image description here"></a></p>
  
  <p>What can be the problem? How to leave original style of cells?</p>
  
  <p>UPD</p>
  
  <p>Here is a dropbox link to the template file - <a href="https://dl.dropboxusercontent.com/u/2141422/VitalSourceTemplate.xlsx" rel="nofollow noreferrer">dropbox</a></p>
  
  <p>UPD 2</p>
  
  <p>When I convert template file from xlsx to xls everything works as expected. </p>
  
  <p>Here is a link to the xlsx template - <a href="https://dl.dropboxusercontent.com/u/2141422/VitalSourceTemplate.xlsx" rel="nofollow noreferrer">link</a></p>
  
  <p>Here is a link to the xls template - <a href="https://dl.dropboxusercontent.com/u/2141422/VitalSourceTemplate2003.xls" rel="nofollow noreferrer">link</a></p>
  
  <p>Does PHPExcel process xlsx and xls colors differently? At other hand I use Numbers on Mac to open Excel files and converting them to xlsx and xls - probably there is some bug with Numbers. Appreciate any help and information.</p>