How to set specific color to active cell when creating XLS document in PHPExcel?
相关问题
- Setting Column Width with PHPExcel Not Working
- exporting large files to excel using PHPExcel
- How to generate a password protected spreadsheet f
- PhpSpreadsheet is corrupting files
- Get the cell background color in PhpExcel
相关文章
- Set rows to repeat at top when printing - PHPExcel
- Download with php with headers do not work on IE8
- PHPExcel. How to check if current cell is merged w
- how to add PHPExcel library in laravel?
- PhpExcel - How insert the same row after row N?
- Class 'ZipArchive' not found error while u
- PHPExcel Save a xls file to a specific folder
- PHPExcel file cannot open file because the file fo
Source: http://bayu.freelancer.web.id/2010/07/16/phpexcel-advanced-read-write-excel-made-simple/
This code should work for you:
But if you bother using this over and over again, I recommend using
applyFromArray
.Seems like there's a bug with
applyFromArray
right now that won't accept color, but this worked for me: