Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Re: Using Win32::OLE and Excel - Tips and Tricks

by cacharbe (Curate)
on Jun 25, 2002 at 17:31 UTC ( #177152=note: print w/ replies, xml ) Need Help??

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

I'm not sure that I understand your question. ALL of the above code assumes that the worksheet is open (Either by creating a new one, or by opening an existing one).

Are you getting some kind of error, or are you not seeing what you expect? The code that you seem to have omitted would probably help me determine what the matter is, and don't forget to use <CODE> </CODE> tags, it makes for much easier reading.


Flex the Geek

Comment on Re: Re: Using Win32::OLE and Excel - Tips and Tricks
Replies are listed 'Best First'.
Re: Re: Re: Using Win32::OLE and Excel - Tips and Tricks
by Anonymous Monk on Jun 25, 2002 at 18:21 UTC
    In fact, my problem is more about Excel rather than perl (I think).
    I was wondering if there is an option so when my perl program update a value in a cell I can see it immediately in Excel (the file is always open on my desktop)
      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};


      Flex the Geek

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://177152]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2016-02-08 06:33 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (268 votes), past polls