gibsonca has asked for the wisdom of the Perl Monks concerning the following question:
1) After this script runs, and I open the newly created excel file, I can see that the 2nd row is selected, yet the freezepane is not active.
my $freeze_panes = $gExcel->ActiveSheet->Range("2:2")->Select; #$gSheet->Cells(2,2)->Select(); $gExcel->ActiveSheet->{FreezePanes} = $TRUE; # or 1 ..
2) The user occasionally orphans a copy of excel, and I'd like to be able to detect that a copy of excel is already running. This effort does not work (of course): Is there a way to detect an orphaned Excel? YOu have to delete it with windows task manager?
Thanksif ($Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit')) { print "\n123 \n"; } else { print "\n456 \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 OLE Excel 2003 question
by Corion (Patriarch) on May 05, 2009 at 20:24 UTC | |
by gibsonca (Beadle) on May 05, 2009 at 21:08 UTC |