title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.SelectBeginning method (Project) |
vbapj.chm2041 |
|
project-server |
|
4adf20ae-4fd2-818a-da8c-133c08cad7fb |
06/08/2017 |
medium |
Selects the first cell in the active table or view.
expression. SelectBeginning
( _Extend_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Extend | Optional | Boolean | True if the current selection is extended to the first cell. If the active view is the Network Diagram or Resource Graph, Extend is ignored. The default value is False. |
Boolean
In the Resource Graph, SelectBeginning selects the resource with the lowest identification number. In the Network Diagram, SelectBeginning selects the box closest to the upper-left corner of the view.
The following example selects the "Name" field of row 4 as the beginning field in the Gantt Chart.
Sub Select_Beginning()
ViewApply Name:="&Gantt Chart"
SelectTaskField Row:=4, Column:="Name", RowRelative:=False
SelectBeginning Extend:=True
End Sub
[!includeSupport and feedback]