Excel sheet handling using perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bipin J
    New Member
    • Sep 2011
    • 1

    Excel sheet handling using perl

    I am trying to copy content of one excel sheet to another using Win32::OLE.
    For the destination file i am able to select the sheet using hte following command
    my $Dest_Sheet=$De st_Book->Worksheets(She et_name)
    But for the source file when i tried the same i am getting errors. So i am forced to give the sheet No.
    Code:
    my $Source_Sheet = $Source_Book->Worksheets(1)
    Is there a solution for the same.

    One more thing is there a way to get the total number of sheets available in an excel sheet?
    Last edited by numberwhun; Sep 27 '11, 05:09 AM. Reason: Please use code tags around code in the forums.
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    If you're having trouble with Win32::OLE, you can always try using Spreadsheet::Pa rseExcel and Spreadsheet::Wr iteExcel. It would definitely require a bit of programming to accomplish what you describe, but I'm sure it's doable.

    - Miller

    Comment

    Working...