How to set all cells A1
森
2017-10-19 14:16:21
0
1
1391

$objActSheet = $objPHPExcel->getActiveSheet();

// Get the current active cell

$objActSheet->getStyle("A1")->getFont( )->setSize(20)->setBold(True);

The question is, how can I set all A1 cells

森

reply all(1)
路过

If I remember correctly

$objActSheet->getStyle("A1:An")->getFont()->setSize(20)->setBold(True);

For example:

$objActSheet->getStyle("A1:A10")->getFont()->setSize(20)->setBold(True);

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!