יוצר גליון עבודה חדש. גליון העבודה החדש הופך לגיליון הפעיל
תחביר
| Before |
TXLSWorksheet Optional. An אובייקט that specifies the sheet before which the new sheet is added |
| After |
TXLSWorksheet Optional. An אובייקט that specifies the sheet after which the new sheet is added. The ברירת מחדל ערך is the last Worksheet |
| Count |
Integer Optional. The number of sheets to be added. The ברירת מחדל ערך is one |
| Type_ |
OleVariant Optional. מציין the sheet type. Can be one of the following XlSheetType constants: xlWorksheet, xlChart, xlExcel4MacroSheet, or xlExcel4IntlMacroSheet. The ברירת מחדל ערך is xlWorksheet. This argument is ignored by this library |
דוגמה
דוגמה זו יוצרת גליון עבודה חדש ומגדירה שם עבורו
Var Worksheet: TXLSWorksheet;
begin
Worksheet := Workbook.Sheets.Add;
Worksheet.Name := 'New sheet';
end;
דוגמה זו יוצרת גליון עבודה חדש אחרי גליון העבודה השני