> Yes, the document is open in excel. But the scripts dies on line 4 (
> Spreadsheet::WriteExcel-> new ), which should not and give me $Book
> as undef so I can check it and give the user a warning to close the
> sheet. Tight now the script dies with excel exception errors.
>

While the documents indicate new() will return undef it can't create the
file, the actual code croak()s.  You can always get the desired behavior by
calling new() in an eval block.

Steve


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to