I'm trying to use a combination of Spreadsheet::ParseExcel::SaveParser and Spreadsheet::WriteExcel to modify an existing spreadsheet. I have all my modification routines so far working perfectly, including keeping color settings from the original sheet. However one thing that the original sheet has that I'd like to at least attempt to preserve in a meaningful manner is split panes.

After calling the SaveAs method, I turn around and reopen a WriteExcel worksheet method, and have it define the split panes, and found sizing that works for what I want, and have it set the right hand scroll area to a default that is meaningful for my purposes. What I cannot seem to figure out is how to set the left side of the split pane to by default display a specific column.

Right now it simply displays column A, starting at whatever row I have specified later. I'd like to be able to define that (column S for example, though ultimately I'd like to select the column programatically using routines I've already developed)

$swe_wbook=$wbook->SaveAs("$ssheet"); $worksheet = $swe_wbook->sheets($wsheetnum); $worksheet->split_panes(12.75,10,1,$namedcol);

$wsheetnum is the previously discovered index number of the worksheet we're working on, obviously. $namedcol is the column number of the first column to be displayed in the right hand side. I'd like $namedcol -1 to be the column being displayed to the left of the split. If there is further information I can provide, I'll do my best.


In reply to Spreadsheet::WriteExcel and displaying a specific column in split_panes by magamo

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.