Application.SelectBeginning method (Project)

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.

Return value



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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.