Share via


Application.SelectBeginning Method

Project Developer Reference

Selects the first cell in the active table.

Syntax

expression.SelectBeginning(Extend)

expression   A variable that represents an Application object.

Parameters

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
Boolean

Remarks

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.

Example
The following example selects the "Name" field of row 4 as the beginning field in the Gantt Chart.

Visual Basic for Applications
  Sub Select_Beginning()
               
    ViewApply Name:="&Gantt Chart"
    SelectTaskField Row:=4, Column:="Name", RowRelative:=False
    
    SelectBeginning Extend:=True
End Sub

See Also