NativeExcel suite v2.x

Index property

Returns the index number of the Worksheet within the Sheets/WorkSheets collection. Read-only Word.

Syntax

property Index: Word;

Example

This example displays the tab number of the specified sheet.
MessageDlg('This sheet is tab number ' + inttostr(Worksheet.Index),
           mtInformation, [mbOk], 0);
Copyright © NikaSoft 2004-2011