Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $excel = 'c:/Programs/Microsoft Office/Excel/excel.exe';
    ...
    # with backslashes
    system( $excel, $file ) == 0
      or die "Couldn't start Excel: $^E / $! / $?";
    
  2. or download this
    use strict;
    my $file = "c:\\path\\to\\my test.xls";
    # note that cmd.exe wants the filename delimited
    # with backslashes
    system( 'start', $file );
    
  3. or download this
    use strict;
    use Win32::OLE;
    ...
    $excel->Open( $file );
    # or so I believe. Use the Macro Recorder to find out
    # what the function names are actually called