Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.SelectTaskField Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Selects a task field.

Syntax

expression. SelectTaskField( ** Row, ** Column, ** RowRelative, ** Width, ** Height, ** Extend, ** Add** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
RowRequiredLongThe number of the row containing the field to select.
ColumnRequiredStringThe name of the column containing the field to select.
RowRelativeOptionalBooleanTrue if the location of the new selection is relative to the active selection. The default value is True.
WidthOptionalLongThe number of columns to select in addition to the active field.
HeightOptionalLongThe number of rows to select in addition to the active field.
ExtendOptionalBooleanTrue if the active selection is extended into the new selection. The default value is False.
AddOptionalBooleanTrue if the new selection is added to the active selection. The default value is False.

Return Value

Boolean

Example

The following example selects the Name column and the next two columns of the third and fourth rows on the Gantt Chart.

Sub Select_TaskField() 

 ViewApply Name:="&;Gantt Chart" 
 SelectTaskField Row:=3, Column:="Name", RowRelative:=False, Width:=2, Height:=1 
End Sub
© 2017 Microsoft