Task.Subproject property (Project)

Gets or sets the subproject name for the task. Read/write String.

Syntax

expression. Subproject

expression A variable that represents a Task object.

Example

The following line of code inserts the specified project as a subproject for the task. If the project is not found, it displays a file dialog box with the title Cannot find inserted project - C:\Project\MySubProject.mpp.

activecell.Task.SubProject = "C:\Project\MySubProject.mpp"

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.