I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-01-06 10:30:10-08 by mullet
Cell values from returned different sheet
Has anyone seen where a cell is returned from a different worksheet besides the one that is being used? In my case, I'm extracting values from the same cells across 10 different Excel files. In one file and for only two particular cells, I get the values of the cells on another worksheet of the workbook instead the desired sheet. I get the right values for all the other cells I'm extracting and I get the right values for all the cells in the other 9 workbooks.

Code Snippet:
my $workbook = Spreadsheet::ParseExcel::Workbook->Parse($file); my $sheet = $workbook->{Worksheet}->[0]; #for $row and $col in list of wanted cells { my $cell = $sheet->{Cells}[$row][$col]; my $val = $cell->{Val}; # do stuff with $val }

In 9 files everything works as expected. In the 10th file, I get the values I expect for most of the cells. For two cells in the worksheet, I get the values from the same cell locations on a different worksheet of the same file. All 10 files are copies of a master file. All 10 files have the same 3 worksheets.

Any suggestions to fix? I've alread downloaded 0.42...
Direct Responses: 9706 | Write a response
Posted on 2009-01-12 13:57:41-08 by jmcnamara in response to 9651
Re: Cell values from returned different sheet

Hi,

Could you send the file that produces the erroneous results to the email address listed in the current Spreadsheet::ParseExcel docs and I'll have a look. Let me know the location of the cells that have the incorrect values as well.

John.
--

Direct Responses: Write a response