I know that this line of code will make the cell text-wrap:
$objPHPExcel->getActiveSheet()->getStyle(\'D1\')->getAlignment()->setWrapText(true);
$objPHPExcel->getDefaultStyle()->getAlignment()->setWrapText(true);
Apply to a range:
$objPHPExcel->getActiveSheet()->getStyle('D1:E999')
->getAlignment()->setWrapText(true);
Apply to a column
$objPHPExcel->getActiveSheet()->getStyle('D1:D'.$objPHPExcel->getActiveSheet()->getHighestRow())
->getAlignment()->setWrapText(true);
Apply to column
$highestRow = $$objPHPExcel->getActiveSheet()->getHighestRow();
for ($row = 1; $row <= $highestRow; $row++){
$sheet->getStyle("D$row")->getAlignment()->setWrapText(true);
}