Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by HelenCr (Monk)
on Dec 11, 2012 at 19:22 UTC ( #1008376=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

This piece of code doesn't work because "Selection" is a method of the parent Excel application, not the sheet.

So if you had, in the beginning of your code:

my $XcelApp = Win32::OLE->new( 'Excel.Application' );

Then the second line in your post should go:

$XcelApp->Selection->Copy('A17');

Helen


Comment on Re^2: Using Win32::OLE and Excel - Tips and Tricks
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2015-07-31 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls