Application.InactivateTaskToggle method (Project)

Toggles the state of a task between inactive and active.

Syntax

expression. InactivateTaskToggle( _MakeActive_ )

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
MakeActive Optional Variant Specifies whether to make the task active. If the task is active, True has no effect. If the task is inactive, True makes the task active.

Return value

Boolean

Remarks

The InactivateTaskToggle method corresponds to the Inactivate command in the Tasks group of the Task tab on the 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.