Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Creating desired number of worksheets in excel

by sundialsvc4 (Abbot)
on Sep 11, 2013 at 12:10 UTC ( #1053480=note: print w/replies, xml ) Need Help??

in reply to Creating desired number of worksheets in excel

The ways of doing this in Perl are pretty much identical to that of any other language, since the underlying subsystem is OLE.   You can directly reference any sheet in the workbook without affecting the user-interface (e.g. by activating or opening the sheet), and you probably don’t want to except to “put on an I’m Busy Show” for the end-user.   You can reference the elements in any Collection (such as Sheets either by index or by name.   Again, the principles and modus operandi are the same everywhere.   Learn how to do it first (say, in Excel’s own built-in VB/macro facility), then translate the known-good methods into Perl-talk.

Incidentally, I am of the opinion that “when in Rome, do as the Romans do.”   In the Windows environment, that’s OLE.   It works, and it works quite well.   Much better, IMHO, than trying to build a file.

  • Comment on Re: Creating desired number of worksheets in excel

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053480]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-01-24 00:04 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (254 votes). Check out past polls.