Application.SetTaskMode method (Project)

Changes the mode of the selected tasks, to manually scheduled or automatically scheduled.


expression. SetTaskMode( _Manual_, _IsStickyDates_ )

expression An expression that returns an Application object.


Name Required/Optional Data type Description
Manual Optional Boolean If True, changes the selected tasks to manually scheduled. If False, changes the tasks to automatically scheduled.
IsStickyDates Optional Boolean If True, when a manually scheduled task is changed to automatically scheduled, the constraint type is set to Start No Earlier Than and the constraint date is set to the previous start date.

Return value



The SetTaskMode method corresponds to the Manually Schedule command and the Auto Schedule command on the TASK ribbon.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.