Count property

When the current range is specified from columns, the Count property returns the number of columns in the current range. When the current range is specified from rows, the Count property returns the number of rows in the current range. When the current range is specified from a range of cells, the Count property returns the number of cells in the current range.

Defined in

Range

Data type

int

Syntax

public int getCount()

See examples

Example: Count property