Greetings Wise Monks
I have created a simple test script for Excel::Template to experiment with formulae on one worksheet that reference cells values on another. The perl script and xml template are shown below
When I run the script I get the following error:
Can't use an undefined value as an ARRAY reference at /usr/local/share/perl/5.10.0/Excel/Template/Context.pm line 301.The script/template work correctly when all three rows are on a single worksheet.
Are cross-worksheet references beyond the scope of this module? Any advice greatly appreciated.
perl script
#!/usr/bin/perl use strict; use warnings; use Excel::Template; my $template = new Excel::Template(); $template->parse( 'test.xml' ); $template->write_file( 'test.xls' );
xml template
<?xml version='1.0'?> <!DOCTYPE spreadsheet> <workbook> <worksheet name="Tab1"> <row> <cell ref="one" type="number" text="1" /> <cell ref="two" type="number" text="2" /> </row> </worksheet> <worksheet name="Tab2"> <row> <formula>=<backref ref="one" />+<backref ref="two" /></formula> </row> </worksheet> </workbook>
In reply to Is it possible to use back references across worksheets with Excel::Template? by normskib
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |