Help for this page
use Win32::OLE::Const 'Microsoft Excel'; ... $sheet->Range($range)->{HorizontalAlignment} = xlHAlignCenter;