http://www.perlmonks.org?node_id=177180


in reply to Re: Re: Re: Using Win32::OLE and Excel - Tips and Tricks
in thread Using Win32::OLE and Excel - Tips and Tricks

If its always open on your desktop, make sure that you are only using the current, open instance of Excel, set your worksheet=ActiveSheet and don't close the worksheet or workbook before terminating your script.
my $Excel = Win32::OLE->GetActiveObject('Excel.Application')|| die "You gotta have it open first!!\n"; my $Sheet = $Excel->{ActiveSheet};

C-.

---
Flex the Geek