473,385 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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=$Dest_Book->Worksheets(Sheet_name)
But for the source file when i tried the same i am getting errors. So i am forced to give the sheet No.
Expand|Select|Wrap|Line Numbers
  1. my $Source_Sheet = $Source_Book->Worksheets(1)
  2.  
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?
Sep 19 '11 #1
1 2368
miller
1,089 Expert 1GB
If you're having trouble with Win32::OLE, you can always try using Spreadsheet::ParseExcel and Spreadsheet::WriteExcel. It would definitely require a bit of programming to accomplish what you describe, but I'm sure it's doable.

- Miller
Sep 27 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: st | last post by:
Hi, I've a routine that exports a DB query to Excel by building an XmlDocument and saving to a XmlTextWriter. I'm having trouble with carriage returns in a mailing address not showing up in the...
3
by: rahatekarabhijeet | last post by:
I want to create excel sheet using perl, i had installed all the necessary modules from CPAN. The perl program i taken from CPAN itself it is given below, #!/usr/bin/perl -w use warnings; use...
2
by: raj2007 | last post by:
Hi, I am not able to see certain columns from the excel sheet when I am trying to load the excel sheet data in to a sql server using SQL server 2000 DTS. Please let me know if there is any...
1
by: safh | last post by:
hi, i need urgently a help in C# to retrieve data from an excel sheet(all values of a single column one by one) and need to match with all the values of a column in a table of a database(oracle)....
2
by: anilkumarup | last post by:
Code-- objExcel = New Excel.Application Error/Exception-- I have included all the apis microsoft.office.interop.excel etc in bin but it is not able to make object of excel class.
1
by: pvenu | last post by:
Hi, I know basic perl (regular expressions, pattern matching, string manipulation, reading writing into text files). Yet, my requirement is to read an input text file -> process this input file...
10
by: ankurbahri | last post by:
hi !!! i wanna to know if we can access info. cloumn wise in an excel file using turbo c???? and if yes then how can we delete specific columns with thier data???
1
by: shakthisarav | last post by:
Hi Frnz pls help me in doing the below task ................. problem: Add one combo to the excel spreadsheet. let it be in cell 'd1'.the combo should contain items as lock & unlock.when we...
15
numberwhun
by: numberwhun | last post by:
Ok, let me preface this thread by saying that I cannot provide a real sample of the data that I am working with. The reason is, because it contains a lot of private, confidential information (for...
4
by: vidhyaG | last post by:
Hi.... i want to pass datatable from windows application to excel sheet.im using c# language if any one know this.... help me
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.