in reply to How to resize a column in excel with Win32::OLE
my $column = $worksheet->Range("A1");
It should probably be:
my $column = $worksheet->Columns("A:A");
See cacharbe's excellent tutorial, Using Win32::OLE and Excel - Tips and Tricks. It contains an example of how to change column widths.
--
John.
Update: Corrected "A" to "A:A", see below.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to resize a column in excel with Win32::OLE
by abhishes (Friar) on Feb 06, 2003 at 13:52 UTC | |
by jmcnamara (Monsignor) on Feb 06, 2003 at 14:11 UTC |