That is what I am currently doing. So $maxwidth= length $mylargeststring But if I then set the width to that length it does not work. Its still to short.
Any ideas? -----Original Message----- From: Wagner, David --- Senior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 3:46 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Spreadsheet::WriteExcel Column width Paul Kraus wrote: > Is there any way to set the column width to the be as wide as the > longest cell in that column? > > Paul Kraus $MyWorkSheet->set_column(Col1, Col2, widthdesired); Now to get width desired, need to do a length of the data being processed and save the largest to be applied vs the col(s) desired. Wags ;) ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]