I will not write code for you for free. I also will point out that you will get more help by asking what you're doing wrong using a module than asking others to teach you about its features beforehand. You should search a little before asking.

What I will do, however, is since you asked a question I can quickly and easily answer for someone else who might find this thread in the future, is answer it quickly and simply for their benefit.

Using the Spreadsheet::ParseExcel module, you want the worksheet method to get the contents of a sheet by name or the worksheets method to get a list of worksheets through which you can iterate.

With DBI::Excel (which is listed as in alpha development) a worksheet is treated as a database table which you can refer to by name as if it was any other database table. You can get a list of tables (worksheets) from that with the list_tables private driver function.

I'm not sure how to extract data from specific worksheets using other spreadsheet modules, as I've yet to have that need myself.


In reply to Re: Accessing specific Excel spread sheets by mr_mischief
in thread Accessing specific Excel spread sheets by Win

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.