in reply to Re: Reading Excel
in thread Reading Excel

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Reading Excel
by poj (Abbot) on Jan 27, 2017 at 09:27 UTC

    Can you open the file in Excel ?. Run this to show the versions you have

    #!perl use strict; use warnings; use Win32::OLE qw(in with); # get already active Excel application or open new my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); print "Perl $] Win32::OLE Version ${Win32::OLE::VERSION}\n"; print "Running Excel $Excel->{'Version'} on $Excel->{'OperatingSystem +'}\n";
    poj

      perl 5.008009 Win32::OLE version 0.1709....Running Excel 15.0 on. I am unable to deal with Excel also..Same error is coming in both the cases.

        If Excel cannot open the file, Perl-using-Excel will not be able to open the file either.

        The lesson here is to check your input data and not make assumptions. If Excel can't open the file how would calling Excel using Perl be any different?

        perl 5.8.9 is rather old, you should try updating your perl