change 'with' -> 'while'
while (my $r = $Sheet->Columns($Range), ColumnWidth => 1); Saadat Saeed <[EMAIL PROTECTED]> 03/11/2004 11:55 AM To [EMAIL PROTECTED] cc Subject Win32::OLE 7 Excel Now Using Win32::OLE I could input Data into an Excel sheet using the perl docs by ActiveState. However now I also want to format.... Here is my code snippet $Range = $Sheet->Range("E1"); with (my $r = $Sheet->Columns($Range), ColumnWidth => 1); Very simple eh? Any reason why it would not work AND not give any error messages as well. __________________________________ Do you Yahoo!? Yahoo! Search - Find what youâre looking for faster http://search.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>