Solved

How to automatically add columns to an existing excel file?

Posted on 2009-03-31
5
519 Views
Last Modified: 2012-06-27
In my excel table, the rows are features or parameters of devices, for example, device type, physical address, IP address, ....... The columns are different devices. one columns is for one device.

I need to extract these device information from configuration files using a Perl script and write in one existing excel table.  when using
while()  {
# write in data
}

from row 1, row 2, ...is easy.  using +1
but how to go from  column A,  column B,  column C,...?

If anybody wanna help me out, it would be greatly appreciated!
0
Comment
Question by:howruaz9
  • 3
5 Comments
 
LVL 2

Assisted Solution

by:jbmraja
jbmraja earned 200 total points
Comment Utility
0
 

Author Comment

by:howruaz9
Comment Utility
Thanks very much jbmraja

I try to use Spreadsheet::WriteExce, but it failed as below.

Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains: C:/Perl/site/lib
C:/Perl/lib .) at xls1.txt line 4.
BEGIN failed--compilation aborted at xls1.txt line 4.



The line 4:  use Spreadsheet::WriteExcel;



0
 
LVL 39

Accepted Solution

by:
Adam314 earned 300 total points
Comment Utility
You need to install that module.  If you are using the ActiveState distro, you can do so by running this:
    ppm install Spreadsheet::WriteExcel

If you are using a diff distro... which one are you using?
0
 

Author Comment

by:howruaz9
Comment Utility
I'm using ActivePerl-5.10.0.1004-MSWin32-x86-287188

ppm install Spreadsheet::WriteExcel
ppm install Spreadsheet::ParseExcel

Both work very well.  Thanks so much Adam314!


0
 

Author Closing Comment

by:howruaz9
Comment Utility
Adam314 and Jbmraja, I really appreciate your time, patience and kind help!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now