title: Workaround for copying style with PHPExcel
body: <p>I want to copy the style information from cells to ranges, like Format Painter in Excel.  The documentation says to do something like this:</p>
  
  <pre><code>$activeSheet-&gt;duplicateStyle($activeSheet-&gt;getStyle('A1'), 'D1:D100');
  $activeSheet-&gt;duplicateStyle($activeSheet-&gt;getStyle('B1'), 'E1:E100');
  </code></pre>
  
  <p>There appears to be a bug because both D1:D100 and E1:E100 get the style from cell B1.  If I change the order of the two lines, both ranges get the style from A1.  Similarly, </p>
  
  <pre><code>$styleA = $activeSheet-&gt;getStyle('A1');
  $styleB = $activeSheet-&gt;getStyle('B1');
  $activeSheet-&gt;duplicateStyle($styleA, 'D1:D100');
  </code></pre>
  
  <p>results in D1:D100 getting style info from cell B1.  The last getStyle value is used in all duplicateStyle results.  </p>
  
  <p>I'm sure that a future release of PHPExcel will have a fix, I just need to figure out a work-around until then.</p>