Docs HotXLS

Count-property

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

Syntaxe

property Count: Longword;

Exemple

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);