Since you're on a Windows box and are already using Win32::OLE, you already have a tool that will give tons of information about Excel and Office data types and constants. The Win32::OLE includes an OLE "browser". It shows all kinds of information, but it's based in VB. If you got the process down of converting macros (recorded in VB) to Perl, you should be able to "convert" the information you find from the OLE browser into Perl code for whatever your developing.

An alternative approach is to not even worry about what are the values of the constants are. I usually add use Win32::OLE::Const "Microsoft Excel .* Object Library"; and use Win32::OLE::Const "Microsoft Word .* Object Library"; to my code, which allows me to directly use the Excel and Office constants without having to decode what their value is.


In reply to Re: Excel enum lists by dasgar
in thread Excel enum lists by merrymonk

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.