title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.SelectRow method (Project) |
vbapj.chm2045 |
|
project-server |
|
63d31b23-3edb-9cd9-16c5-ac4ca4555a2c |
06/08/2017 |
medium |
Selects one or more rows.
expression. SelectRow
( _Row_
, _RowRelative_
, _Height_
, _Extend_
, _Add_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Row | Optional | Long | The number of the row to select. The default is the active row. |
RowRelative | Optional | Boolean | True if the location of the new selection is relative to the active selection. The default value is True. |
Height | Optional | Long | The number of rows to select in addition to the active cell. |
Extend | Optional | Boolean | True if the active selection is extended into the new selection. The default value is False. |
Add | Optional | Boolean | True if the new selection is added to the active selection. The default value is False. |
Boolean
The following example adds row numbers 3 through 5 to the current selection.
Sub Select_Row()
'Activate Gantt Chart
ViewApply Name:="&Gantt Chart"
SelectRow Row:=3, RowRelative:=False, Height:=2, Add:=True
End Sub
[!includeSupport and feedback]