ColumnCount Property [WksRange, WksStatistics]

The ColumnCount property returns the number of columns for which 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