title: Disable few cells in PHPExcel
body: <p>How can I disable a couple of cells but keep the rest editable, using the <a href="https://github.com/PHPOffice/PHPExcel" rel="nofollow">PHPExcel</a> library? 
  I tried a few combinations using:</p>
  
  <pre><code>    $objPHPExcel-&gt;getActiveSheet()-&gt;getProtection()-&gt;setSheet(true);
      $objPHPExcel-&gt;getActiveSheet()-&gt;getProtection()-&gt;setFormatCells(true);
      $objPHPExcel-&gt;getActiveSheet()
          -&gt;getStyle('A1:Z50')
          -&gt;getProtection()-&gt;setLocked(
              \PHPExcel_Style_Protection::PROTECTION_UNPROTECTED
          );
      $objPHPExcel-&gt;getActiveSheet()
          -&gt;getStyle('C7:E7')
          -&gt;getProtection()-&gt;setLocked(
              \PHPExcel_Style_Protection::PROTECTION_PROTECTED
          );
      $objPHPExcel-&gt;getActiveSheet()-&gt;getProtection()-&gt;setSheet(false);
      $objPHPExcel-&gt;getActiveSheet()-&gt;getProtection()-&gt;setFormatCells(false);
  </code></pre>
  
  <p>but all I can get is all document disabled or enabled.
  I'm pretty sure this can be achieved easily. Thanks in advance.</p>