Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: How to extract data from Excel by using Win32 OLE

by davies (Vicar)
on Dec 18, 2013 at 15:32 UTC ( #1067643=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to extract data from Excel by using Win32 OLE
in thread How to extract data from Excel by using Win32 OLE

I can't reproduce your problem. The following code works for me:

use strict; use warnings; use Win32::OLE; my $xl = Win32::OLE->new('Excel.Application'); $xl->{Visible} = 1; my $wb = $xl->Workbooks->Add; for my $nSht (2..$wb->Sheets->{Count}) { $wb->Sheets(2)->Delete; } my $Sheet = $wb->Sheets(1); $Sheet->Cells(2,2)->{Value} = 0.898124; print $Sheet->Cells(2,2)->Value; $xl->{DisplayAlerts} = 0; $xl->Quit;

If you can't solve your problem from this, please post your own SSCCE (http://sscce.org/), otherwise I, at least, will be able to do little more.

Regards,

John Davies


Comment on Re^3: How to extract data from Excel by using Win32 OLE
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2015-07-03 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls