'Declaration
ReadOnly Property CellCount As System.Long
'Usage
Dim instance As IRange Dim value As System.Long value = instance.CellCount
System.long CellCount {get;}
'Declaration
ReadOnly Property CellCount As System.Long
'Usage
Dim instance As IRange Dim value As System.Long value = instance.CellCount
System.long CellCount {get;}
long numberOfCells = worksheet.Cells["A1:XFD1048576"].CellCount; // 17,179,869,184 cells
Dim numberOfCells As Long = worksheet.Cells("A1:XFD1048576").CellCount ' 17179869184 cells
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2