First, consider carefully the three answers you've already received, the last of which may even become relevant in light of the new spec you added in your previous node.
And then consider how to deal with multiple pairs of cell references in a sub called from a loop.
Re your reference to using regexen as a "workaround," IMO, "copy and paste" sounds like a more labor intensive workaround.
Finally, have you read the doc for Win32::OLE carefully? I don't know, offhand, that there's an example of how to solve your problem or something similar in that doc if, indeed, Win32::OLE natively supports what you're seeking. IIRC, M$ uses the term "adjust" for such a (single) operation.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.