merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
use OLE; use Win32::OLE::Const "Microsoft Excel"; use strict "vars"; my ($excel, $workbook, $sheet); #___ DEFINE EXCEL $excel = CreateObject OLE "Excel.Application"; #___ MAKE EXCEL VISIBLE $excel -> {Visible} = 1; #___ ADD NEW WORKBOOK $workbook = $excel -> Workbooks -> Add; $sheet = $workbook -> Worksheets("Sheet1"); $sheet -> Activate; $sheet -> Range("B2:J2") -> Merge; $sheet -> Range("B2:J2") -> {WrapText} = "True"; $sheet -> Range("B2:J2") -> {Value} = "The cat sat on the mat under th +e Christmas tree looking at the chocolate mouse that the little boy h +ad dropped on the floor near the raoring log file in the ingle nook f +ireplace";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem seeing multiline text in Excel cells
by Gangabass (Vicar) on Jan 24, 2010 at 12:51 UTC | |
by merrymonk (Hermit) on Jan 24, 2010 at 14:49 UTC | |
by merrymonk (Hermit) on Jan 24, 2010 at 17:01 UTC |