![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Win::OLE Add imageby blm (Hermit) |
on Aug 24, 2004 at 07:25 UTC ( #385346=note: print w/replies, xml ) | Need Help?? |
Yes. I would say so. Look for the answer in Using Win32::OLE and Excel - Tips and Tricks. You are looking for: #$Excel->ActiveSheet->Pictures->Insert(<PATH TO THE PIC>);I don't know why it is commented out I would read that whole node as it seems to be a juicy source of information about perl, Win32::OLE and Excel. Also, when wanting to work out how to automate Office apps with perl, it is often helpful to use the macro recorder functions in the Office application then open the macro with Visual Basic Editor (Menus ->Tools -> Macro -> Visual Basic Editor) This will give you a rough idea of what objects and methods are used to perform the desired function. You can then easily translate the macro to Perl. In this instance the macro recorder created the following in VBA: Here is my tested code:
In Section
Seekers of Perl Wisdom
|
|