Perl: opening Excel-Files

H

Henning

Hello!
I have "inherited" the following code:

use Win32::OLE::Const 'Microsoft Excel';
$Win32::OLE::Warn = 3;
$Excel = Win32::OLE->new('Excel.Application', 'Quit'); # get a new
excel
$Book1 = $Excel->Workbooks->Open("$abs_file_name"); # open Excel
file

When opening Excel (line 4), Excel tries to start any macros
associated with the file.
Is there a way to avoid this (meaning: force excel to open the file
with disabled macros)?
And how to do so? [I'm using Excel 2003 SP3]

Thanks a lot
Henning
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top