Range.Column Property
Office 2007
| Excel Developer Reference |
Syntax
expression.Column
expression A variable that represents a Range object.
Remarks
Column A returns 1, column B returns 2, and so on.
To return the number of the last column in the range, use the following expression.
myRange.Columns(myRange.Columns.Count).Column
Example
This example sets the column width of every other column on Sheet1 to 4 points.
| Visual Basic for Applications |
|---|
|
See Also