HotXLS Docs

Count property

Returns the number of cells in the range. Read-only Longword

Syntax

property Count: Longword;

Example

This example displays the number of cells in the selection on sheet one

MessageDlg('The selection contains ' +
           inttostr(Workbook.Worksheets[1].Selection.Count) + ' cells.',
           mtInformation, [mbOk], 0);