in reply to Opening Excel (OLE) with passwords

Hello,

Your answer is right in your question :)
my $Book = Excel->Workbooks->Open( { FileName => 'test.xls', Password => 'abc123' } ) or die "Cant open excel file: $!";

All attributes you pasted for Workbooks.Open are valid for opening excel file with Win32::OLE. You just use them as hash keys and values.

In 318680 node I posted 2 links that might be useful.

Hope that helps.
-sheep

Replies are listed 'Best First'.
Re: Re: Opening Excel (OLE) with passwords
by xiopher (Beadle) on Jan 08, 2004 at 17:43 UTC
    do you know if you can do autofit from perl? I tried it eariler and it didn't translate very well from vb.