in reply to Class names in OLE
Aside from the original question (which I think has been answered quite well) I have a question for you. What happens if your Excel application isn't running? Then the Perl script wouldn't be able to GetActiveObject at all. I'd suggest the following addition:
my $excel = Win32::OLE->GetActiveObject('Excel.Application') or Win32::OLE->new('Excel.Application');And of course, check the return code to make sure things went smoothly. But that goes without saying, right? :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Class names in OLE
by Zapawork (Scribe) on Jun 17, 2003 at 20:41 UTC | |
|
Actually I know it's already open
by Foggy Bottoms (Monk) on Jun 18, 2003 at 09:11 UTC | |
|
Re: Re: Class names in OLE
by jdporter (Paladin) on Aug 04, 2003 at 16:53 UTC |