SyntaxFix
Write A Post
Hire A Developer
Questions
Use this:
$sheet->getStyle('A1:'.$sheet->getHighestColumn().'1')->getFont()->setBold(true);