Application.InactivateTaskToggle method (Project)
Toggles the state of a task between inactive and active.
expression An expression that returns an Application object.
|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.|
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.