Docs HotXLS

Count-property

Renvoie the number of sheets in the Worksheets collection. Read-only Integer

Syntaxe

property Count: Integer;

Exemple

This example uses the Count property to set the value of A1 cell on the first sheet

Workbook.Sheets[1].Range['A1','A1'].Value := Workbook.Sheets.Count;