Good morning monks,

I have a problem about Win32::OLE and Excel...(I already read the tutorial (Using Win32::OLE and Excel - Tips and Tricks))

But some questions still remain:
I have written a perl program which generates an Excel File (i used the module Spreadsheet::WriteExcel; for this)
Then I would create some charts from the information, because I didn't know better I did this in VB/Excel Macros (I apologise for using this unworthy language (*g*)).
Now my problem is, after reading the tutorial it will be a great work to convert the macro into perl.
Is there a way to make the following in perl: insert a macro (which may be in a textfile) into a new created excel file and run this macro.

I apologise for my lack of english, but it isn't my native language.

jdporter - edited: activated/corrected links


In reply to Question about Win32::OLE and Excel by Streen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.