in reply to Re^3: isn't numeric in substr error
in thread isn't numeric in substr error

Can't call method "write" on an undefined value at /home/bsmart/excel_workbooks.ipl line 314.

This probably occurs because the worksheet object has already been garbage collected at that point in your program. Try adding an explicit Worksbook close() to synchronise the WriteExcel object destruction.

See the WriteExcel docs on Workbook::close() for more details.

--
John.

Replies are listed 'Best First'.
Re^5: isn't numeric in substr error
by begood321 (Novice) on Nov 24, 2010 at 20:36 UTC

    Thanks John that could be the case. I have changed code from searching within spreadsheet to check for appriate value in variable, which appears to be easier. For now I'm good. Thanks guys for your help.