HotXLS 文档

Count 属性

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

语法

property Count: Integer;

示例

此示例使用 Count 属性设置第一个工作表上 A1 单元格的值

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