Hi, I have a question on using the Win32::OLE module. I want to have a range of values for my excel graph but want to be able to change it depending on user input. For instance, before I start my script I will ask the user what the X axis range will be. My question is how would I change the $Range variable to accomplish that. Currently, the only way I know how to set the range is to hardcode it like the example below. Here the range is set from 3.0 to 4.0 with 0.1 increments. Can anyone tell me how I would be able to change this so if user specified a range from 1.0 to 3.0 with 0.1 increments then my script would be able to handle this?
$Range->{value} = [['voltage', "cell($cell_addr)"], [3.0, $icell_hash{$cell_addr}{' 3.00'}], [3.1, $icell_hash{$cell_addr}{' 3.10'}], [3.2, $icell_hash{$cell_addr}{' 3.20'}], [3.3, $icell_hash{$cell_addr}{' 3.30'}], [3.4, $icell_hash{$cell_addr}{' 3.40'}], [3.5, $icell_hash{$cell_addr}{' 3.50'}], [3.6, $icell_hash{$cell_addr}{' 3.60'}], [3.7, $icell_hash{$cell_addr}{' 3.70'}], [3.8, $icell_hash{$cell_addr}{' 3.80'}], [3.9, $icell_hash{$cell_addr}{' 3.90'}], [4.0, $icell_hash{$cell_addr}{' 4.00'}],

In reply to Win32::OLE X-Axis range question by Anonymous Monk

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.