Range.End Property
| Excel Developer Reference |
Syntax
expression.End(Direction)
expression A variable that represents a Range object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Direction | Required | XlDirection | The direction in which to move. |
Example
This example selects the cell at the top of column B in the region that contains cell B4.
| Visual Basic for Applications |
|---|
|
This example selects the cell at the end of row 4 in the region that contains cell B4.
| Visual Basic for Applications |
|---|
|
This example extends the selection from cell B4 to the last cell in row four that contains data.
| Visual Basic for Applications |
|---|
|
See Also