Application.OutlineHideSubTasks method (Project)
Hides the subtasks of the selected task or tasks.
expression A variable that represents an Application object.
The following example collapses the entire outline of the first task.
Sub OutlineHideAllSubtasks() ActiveProject.Tasks(1).OutlineHideSubtasks End Sub
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.