my $range = $worksheet->Range( 'B:D' ); $range->{HorizontalAlignment} = xlCenter;