in reply to Handle Excel cells with the value #N/A in Perl
Regards,use strict; use warnings; use diagnostics; use Win32::OLE; my $xl = Win32::OLE->new('Excel.Application'); $xl->{Visible} = 1; my $wb = $xl->Workbooks->Open("c:\\data\\na.xls"); exit 0 if not defined($wb); print $xl->isna($wb->Sheets(1)->Cells(1,1)->Value);
|
|---|