Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Recent Post to CUFP

by Albannach (Monsignor)
on Jan 23, 2002 at 11:31 UTC ( [id://140848]=note: print w/replies, xml ) Need Help??


in reply to Recent Post to CUFP

As trs80 notes, Spreadsheet::WriteExcel is still a work in progress, and though there has been a great deal of progress, even the very latest version (0.34 as I type) does not support references to sheets outside the current workbook. As you cannot modify existing workbooks with this module, you can't even add a new empty sheet to your existing Results.xls file, and insert the summary formulas you want in there with references to the relevant existing sheet names.

While you could try Win32::OLE if you are on a Windows platform with Excel installed, you might have an easier time of it if you use Spreadsheet::ParseExcel to read the cells you want from the original spreadsheet, then just create a new workbook with Spreadsheet::WriteExcel, inserting the cells you want to keep, no formulas required.

A final note on your actual code: besides the usual use strict; and use warnings; (or -w as your version allows) admonitions, I'd suggest you use the write($row, $col, $formula) method format, as then you don't need to do any string manipulation to create the Excel-style cell names in your loop.

Update: I had no trouble at all using WinZip to install the latest tar.gz distribution from CPAN.

--
I'd like to be able to assign to an luser

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://140848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-18 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found