NativeExcel suite v2.x

Sheets property

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

Syntax

property Sheets: IXLSWorksheets;

Example

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;
Copyright © NikaSoft 2004-2012