Help for this page

Select Code to Download


  1. or download this
    #my $Excel = Win32::OLE->new('Excel.Application', 'Quit');  # use the 
    +Excel application if it's open, otherwise open new
    
  2. or download this
        # use existing instance if Excel is already running
            eval {$ex = Win32::OLE->GetActiveObject('Excel.Application')};
            die "Excel not installed" if $@;
    ...
                $ex = Win32::OLE->new('Excel.Application', sub {$_[0]->Qui
    +t;})
                        or die "Oops, cannot start Excel";
            }