$format = $workbook->add_format(border => 1); $worksheet->write('A1:D3',$format);