Range.Count Property
Excel Developer Reference |
Returns a Long value that represents the number of objects in the collection.
Syntax
expression.Count
expression A variable that represents a Range object.
Example
This example displays the number of columns in the selection on Sheet1. The code also tests for a multiple-area selection; if one exists, the code loops on the areas of the multiple-area selection.
Visual Basic for Applications |
---|
|
See Also