in reply to Horizontal Alignment

According to the docs, the value needs to be one of the XlHAlign values. Note that XlHAlign is an enumeration, so the values are numbers. "Left" is definitely wrong. Constants can usually be imported using Win32::OLE::Const.
use Win32::OLE::Const 'Microsoft Excel'; ... $sheet->Range($range)->{HorizontalAlignment} = xlHAlignCenter;

Untested.

Replies are listed 'Best First'.
Re^2: Horizontal Alignment
by jinhuang1992 (Novice) on Jan 26, 2007 at 20:11 UTC
    Thank you very much. You've just given me the perfect answer.