vlilich has asked for the wisdom of the Perl Monks concerning the following question:
A91 and A92 are the tokens I will be replacing. $diff is a result of a calculation and can change such as $diff=1 or $diff=2 etc...my $formula1 = $ws->store_formula('=(12*A91)+MONTH(L$39-1)-MONTH(A92)+ +1');
Substituting the A92 token works perfectly but sticking in $diff where A91 resides is not working, what gets in there is IV65536 instead. Thanks$ws->repeat_formula($row, $col, $formula1, $fmt->{'number'}, qw/^A91$/, $diff, qw/^A92$/, '$A' . $current_row );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spreadsheet::WriteExcel question
by pc88mxer (Vicar) on Jul 01, 2008 at 02:40 UTC | |
by vlilich (Initiate) on Jul 01, 2008 at 20:59 UTC |