Documentación de HotXLS

Propiedad Count

Devuelve el numero de hojas en la coleccion Worksheets. Solo lectura Integer

Sintaxis

property Count: Integer;

Ejemplo

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;