Creates a new Worksheet. The new Worksheet becomes the active sheet
Sintassi
| Before |
TXLSWorksheet. Un oggetto che specifica il foglio prima del quale viene aggiunto il nuovo foglio |
| After |
TXLSWorksheet facoltativo. Un oggetto che specifica il foglio dopo il quale viene aggiunto il nuovo foglio. Il valore predefinito รจ l'ultimo foglio |
| Count |
Integer Optional. The number of sheets to be added. The default value is one |
| Type_ |
OleVariant Optional. Specifica the sheet type. Can be one of the following XlSheetType constants: xlWorksheet, xlChart, xlExcel4MacroSheet, o xlExcel4IntlMacroSheet. The default value is xlWorksheet. This argument is ignored by this library |
Esempio
This example creates new Worksheet e sets the name to it
Var Worksheet: TXLSWorksheet;
begin
Worksheet := Workbook.Sheets.Add;
Worksheet.Name := 'New sheet';
end;
This example creates new Worksheet after second Worksheet