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

Application.UpdateTasks Method (Project)

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

Updates the selected tasks.


expression. UpdateTasks( ** PercentComplete, ** ActualDuration, ** RemainingDuration, ** ActualStart, ** ActualFinish, ** Notes )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
PercentCompleteOptionalVariantThe percent complete of the active tasks.
ActualDurationOptionalVariantThe actual duration of the selected tasks.
RemainingDurationOptionalVariantThe remaining duration of the selected tasks.
ActualStartOptionalVariantThe actual start date of the selected tasks.
ActualFinishOptionalVariantThe actual finish date of the selected tasks.
NotesOptionalStringComments in the Notes field for the selected tasks. The value can be text only, not Rich Text Format (RTF) as in the Notes dialog box.

Return Value



Using the UpdateTasks method without specifying any arguments displays the Update Tasks dialog box.


The following example creates a task named "TestTask-1", updates the task to 50% complete, and then deletes the task.

Sub Update_Tasks() 

 'Activate Gantt Chart 
 ViewApply Name:="Gantt Chart" 

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

 'Update the percent complete of the new task. 
 UpdateTasks PercentComplete:="50" 

 'Delete the new task 
End Sub
© 2018 Microsoft