Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Win32::OLE Excel issue

by Anonymous Monk
on Feb 02, 2012 at 08:56 UTC ( #951382=note: print w/ replies, xml ) Need Help??

in reply to Win32::OLE Excel issue

use Win32::OLE; use Win32::OLE qw(in with); use Win32::OLE::Variant; use Win32::OLE::Const 'Microsoft Excel'; sub LoadFile { my $map_file = shift; print "$map_file\n"; my $in_Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win +32::OLE->new('Excel.Application', 'QUIT'); print "$in_Excel \n"; $in_Excel->{DisplayAlerts}=1; #0 is hide alerts my $in_eBook = $in_Excel->Workbooks->Open($map_file); print "$in_eBook \n"; $in_eBook->SaveAs({Filename =>'D:\Perl Programs\OLE Progs\file11.xls', FileFormat => xlWorkbookNormal}); $in_eBook->Close(); $in_Excel->Quit(); } &LoadFile('D:\Perl Programs\OLE Progs\file.xls');

Comment on Re: Win32::OLE Excel issue
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-11-24 23:10 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (665 votes), past polls