This documentation is archived and is not being maintained.

NamedRange.CountLarge Property

Gets the number of cells in the NamedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Object CountLarge { get; }

Property Value

Type: System.Object
The number of cells in the NamedRange control.

The CountLarge property is functionally the same as the Count property, except that the CountLarge property can handle ranges up to the maximum size for a worksheet, which is 17,179,869,184 cells. The Count property, however, will generate an error if the specified range has more than 2,147,483,647 cells (one less than 2048 columns).

Show: