HotXLS 文档

Count 属性

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

语法

property Count: Integer;

示例

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;