in reply to Re: Help adding a worksheet in a subroutine with Spreadsheet::WriteExcel
in thread Help adding a worksheet in a subroutine with Spreadsheet::WriteExcel

I think I used a bad example...I posted this question too soon. The reason it isn't getting added in the sub is because I never close the workbook (e.g. $workbook->close();)

Do that and it works fine

  • Comment on Re^2: Help adding a worksheet in a subroutine with Spreadsheet::WriteExcel

Replies are listed 'Best First'.
Re^3: Help adding a worksheet in a subroutine with Spreadsheet::WriteExcel
by Anonymous Monk on Nov 17, 2015 at 20:17 UTC
    Thanks so much, You solved my problem..even I was missing close function and struggling to add worksheets.