Project.ProjectSummaryTask property (Project)
Gets a Task object representing the project summary task for the active project. Read-only Task.
Syntax
expression. ProjectSummaryTask
expression A variable that represents a Project object.
Remarks
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.
Example
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
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.