Documentazione HotXLS

Worksheets proprietà

Restituisce a Worksheets collection that represents all the sheets in the specified Workbook. Read-only Worksheets object

Sintassi

proprietà Worksheets: TXLSWorksheets;

Esempio

This example creates a new Worksheet e then places a list of the active Workbook's sheet names in the first column

Sheet := Workbook.Add;
for i := 1 to Workbook.Worksheets.Count do
   Sheet.Cells.Item[i, 1].Value := Workbook.Worksheets[i].Name;