I can merge and center a group of cells?

Topics: Developer Forum, Project Management Forum, User Forum
Jun 2, 2013 at 10:02 PM
Edited Jun 2, 2013 at 10:26 PM
I can merge and center a group of cells?, as is done?

thanks
Coordinator
Jun 3, 2013 at 8:38 AM
Section 4.6.34 of the developer documentation for merging cells:
$objPHPExcel->getActiveSheet()->mergeCells('A18:E22');
Section 4.6.20 for setting alignment:
$objPHPExcel->getActiveSheet()->getStyle('A18:E22')
    ->getAlignment()
    ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
Jun 3, 2013 at 1:59 PM
thank you very much