title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Project.ProjectSummaryTask property (Project) |
project-server |
|
88603abc-e988-9ab3-dc83-c44221da13b9 |
06/08/2017 |
medium |
Gets a Task object representing the project summary task for the active project. Read-only Task.
expression. ProjectSummaryTask
expression A variable that represents a Project object.
Local custom fields can be accessed directly from ProjectSummaryTask as task custom fields.
Note
Enterprise project fields are available when a project is opened from Project Server. To access enterprise custom fields, it is necessary to use the SetField and GetField methods along with the FieldNameToFieldConstant method.
The following example sets the local Cost1 task custom field and displays it in a message box.
Sub AddEnterpriseProjectCost1Value()
ActiveProject.ProjectSummaryTask.Cost1 = "500.00"
MsgBox "The Cost1 custom field for the project is: " _
& ActiveProject.ProjectSummaryTask.Cost1
End Sub
[!includeSupport and feedback]