in reply to Exporting VBA code from Excel: Win32::OLE exceptions & orphaned processes
ISSUE 1:
And off to search MSDN you go :) Programmatic access to Office VBA project is denied, Programmatic access to Visual Basic Project is not trusted
ISSUE 2: When the program errors, there is no chance to kill the Excel process just created.
eval or OLE die handler or both?
my $excel = MakeItStart(); eval { DoStuff( $excel ); 1; } or do { warn "UHOH $@ "; KillIt( $excel ); }; exit( 0 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exporting VBA code from Excel: Win32::OLE exceptions & orphaned processes
by shockers_jm (Initiate) on Apr 01, 2015 at 23:29 UTC |