Help for this page

Select Code to Download


  1. or download this
        # use existing instance if Excel is already running
        unless (defined $excel)
    ...
        }
        #to avoid excessive dialogs when saving in non-Excel format
        $excel->{DisplayAlerts} = 0;
    
  2. or download this
    my $excel = Win32::OLE->new('Excel.Application', 'Quit')
                    or die "Oops, cannot start Excel";
    
  3. or download this
        $excel->Quit();
        undef $excel;