Table of contents
Collapse the table of content
Expand the table of content

Application.UpdateProject Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Updates progress information and reschedules work for tasks in a project.


expression. UpdateProject( ** All, ** UpdateDate, ** Action** )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
AllOptionalBooleanTrue if all tasks in the active project are updated. False if only the selected tasks are updated. The default value is True.
UpdateDateOptionalVariantThe update date to use for the specified action.
actionOptionalIntegerThe action to take with the specified tasks. Can be one of the following PjProjectUpdate constants: pj0or100Percent, pj0to100Percent, or pjReschedule. The default is pj0to100Percent.

Return Value



Running the UpdateProject method with no arguments displays the Update Project dialog box.

The UpdateProject method corresponds to the Update Project command on the PROJECT tab of the ribbon.


The following example first creates a task, sets the "% Complete" field to 50 percent; and then updates the project to schedule the rest of the work for the task to start on 9/19/2012.

Sub Update_Project() 
    ViewApply Name:="Gantt Chart" 

    ' Create a new task 
    SetTaskField Field:="Name", Value:="TestTask-1" 
    SetTaskField Field:="Duration", Value:="2" 
    SetTaskField Field:="% Complete", Value:="50" 

    'Schedule the remainder of the work to start on the update date. 
    UpdateProject All:=False, UpdateDate:="9/19/2012", action:=pjReschedule 
End Sub
© 2018 Microsoft