NativeExcel suite v2.x

Worksheets property

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

Syntax

property WorkSheets: 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.Worksheets.Count do
   Sheet.Cells.Item[i, 1].Value := Workbook.Worksheets[i].Name;
Copyright © NikaSoft 2004-2012