Application Object

Project Developer Reference

Represents the entire Project application. The Application object contains:

  • Application-wide settings and options (many of the options in the Options dialog box on the Tools menu, for example).
  • Properties that return top-level objects, such as ActiveCell, ActiveProject, and so on.
  • Methods that act on application-wide elements, such as views, selections, editing actions, and so on.

Using the Application Object

Use the Application property to return an Application object in Project. The following example applies the Windows property to the Application object.


The following example creates a Project project object in another application and then opens a project in Project.

  Dim pj As Object

Set pj = CreateObject("MSProject.Project") pj.Application.FileOpen "My Project.mpp"


Many of the properties and methods that return the most common user-interface objects, such as the active project (ActiveProject property), can be used without the Application object qualifier. For example, instead of writing

  Application.ActiveProject.Visible = True

you can write

  ActiveProject.Visible = True

See Also