HotXLS Docs

Count property

Returns the number of defined names in the collection. Read only Integer.

Syntax

property Count: Integer;

Example

This example deletes all the defined names from the Worksheet one.

With Workbook.Sheets[1] do begin
  cnt := Names.Count;
  if cnt > 0 then
     for i := cnt downto 1 do Names[i].Delete;
end;

See also

IXLSName Interface
IXLSNames.Item property
IXLSWorkbook.Names property
IXLSWorksheet.Names property