ColumnCount Property

ColumnCount returns the number of columns in a range or, for which the statistics are stored. Returns a long. This is a read-only property.

Syntax

object.ColumnCount

Example

This example demonstrates how to return the number of columns within a range.

Debug .Print WksRange.ColumnCount

Used by: WksRange object, WksStatistics object