![]() |
![]() |
Products | Download | Order | Forum | Contact us |
| Before | IXLSWorkSheet Optional. An object that specifies the sheet before which the new sheet is added. |
| After | IXLSWorkSheet Optional. An object that specifies the sheet after which the new sheet is added. The default value is the last Worksheet. |
| Count | Integer Optional. The number of sheets to be added. The default value is one. |
| Type_ | OleVariant Optional. Specifies the sheet type. Can be one of the following XlSheetType constants: xlWorksheet, xlChart, xlExcel4MacroSheet, or xlExcel4IntlMacroSheet. The default value is xlWorksheet. This argument is ignored by this library. |
Var WorkSheet: IXLSWorksheet; begin WorkSheet := WorkBook.Sheets.Add; WorkSheet.Name := 'New sheet'; end;
WorkBook.Sheets.Add(nil, WorkBook.Sheets[2]);
WorkBook.Sheets.AddAfter(2);
| Copyright © NikaSoft 2004-2012 |