Project.ProjectSummaryTask Property

Project Developer Reference

Returns a Task object representing the project summary task for the active project. Read-only Object.



expression   A variable that represents a Project object.

Return Value


Any of the Enterprise Project Fields may be accessed directly from ProjectSummaryTask; it is not necessary to use the SetField() and GetField() methods in Microsoft Office Project 2007. Enterprise Project fields are available in Office Project 2007 when a project is opened from Microsoft Office Project Server 2007.

The following example sets the task enterprise cost and displays it in a message box.

Visual Basic for Applications
  Sub AddEnterpriseProjectCost1Value()
   ActiveProject.ProjectSummaryTask.EnterpriseCost1 = "500.00"

MsgBox ActiveProject.ProjectSummaryTask.EnterpriseCost1 End Sub

See Also