Workbook::close (Previous) (Next) Workbook::&addFormat

View this page in Last updated: Sun, 20 Jul 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Workbook::&addWorksheet

Workbook::&addWorksheet -- Add a new worksheet to the Excel workbook.

Description

Add a new worksheet to the Excel workbook. If no name is given the name of the worksheet will be Sheeti with i in [1..].

Parameter

  • string $name - the optional name of the worksheet. Can not be longer than 31 characters.

Return value

returns a reference to a worksheet object on success, PEAR_Error on failure

Note

This function can not be called statically.

Workbook::close (Previous) (Next) Workbook::&addFormat

Download Documentation Last updated: Sun, 20 Jul 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: Kiezpro
Seems like the worksheet name can't contain a slash ... at least I got a "File Corrupt" message from Excel when I tried to open a generated Excel file containing a worksheet with a slash in it's name. My version of Spreadsheet_Excel_Writer is 0.91.