title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.SelectTPTask method (Project) |
vbapj.chm2192 |
|
project-server |
|
ef27e878-8c80-ad09-157d-f803ec2e7352 |
06/08/2017 |
medium |
Selects the specified task in the Team Planner view.
expression. SelectTPTask
( _TaskUniqueID_
)
expression An expression that returns an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
TaskUniqueID | Optional | Variant | Unique ID of the task to select. |
Boolean
If the Team Planner view is not open, the SelectTPTask method generates run-time error 1100, "The method is not available in this situation."
The following example selects two tasks in the Team Planner view. Task 5 remains selected after task 7 is selected.
Sub SelectTwoTasks()
SelectTPTask (5)
SelectTPTask (7)
End Sub
[!includeSupport and feedback]