Share via


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)

Syntax

'Declaration
ReadOnly Property CountLarge As Object
    Get
Object CountLarge { get; }

Property Value

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

Remarks

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

.NET Framework Security

See Also

Reference

NamedRange Interface

Microsoft.Office.Tools.Excel Namespace