Application.Projects Property

Project Developer Reference

Returns a Projects collection representing the open projects in Microsoft Office Project 2007. Read-only Object.

Syntax

expression.Projects

expression   A variable that represents an Application object.

Return Value
Projects

Example

The following example adds the date and time to the Comments field in the Project Properties dialog box and then saves the project.

Visual Basic for Applications
  Sub SaveAndNoteTime()
    Projects(1).ProjectNotes = Projects(1).ProjectNotes & vbCrLf & "This project was last saved on " _
        & Date$ & " at " & Time$ & "."
    FileSave
End Sub

See Also