HotXLS Delphi Excel Read Write Library / Component Developers Guide loslab Inc.

Sheets property

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


property Sheets: IXLSWorksheets;


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

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