Merging Cells

Oct 1, 2009 at 11:26 AM

How can I merge the cell in .xlsx file

I have 7 columns in the .xlsx.

I want to merge the cell A1 with A2, B1 with B2 ...... ... G1 to G2

And after this I want to load the report data from cell A3 to G3

Please suggest how can I solve above mentioned issues?

 

 

 

Coordinator
Oct 1, 2009 at 11:32 AM
$cellRange = 'A1:A2';
$objPHPExcel->getActiveSheet()->mergeCells($cellRange);

Why do you want to merge these cells? Why not simply set text wrap and increase the height of the row?