Search code examples
phpphpexcelphpspreadsheet

How to set cell padding?


Does anyone know how it's possible to set cell padding in PHPExcel ? Searched for 30mins and still can't find a proper solution. There is no useful documentation on this.


Solution

  • Maybe

    $objPHPExcel->getActiveSheet()->getStyle('A1')->getAlignment()->setIndent(1);