Application.TogglePreventResOveralloc method (Project)

Toggles the Prevent Overallocations command for the Team Planner view.

Syntax

expression. TogglePreventResOveralloc

expression An expression that returns an Application object.

Return value

Boolean

Remarks

When the Prevent Overallocations command is active, Project automatically moves tasks so that resources don't become overallocated because of changes made in the Team Planner view. Overallocations that exist when the Prevent Overallocations command is made active are also resolved.

The TogglePreventResOveralloc method corresponds to the Prevent Overallocations command on the Format tab under Team Planner Tools 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.