title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.InsertTask method (Project) |
vbapj.chm2167 |
|
project-server |
|
fe4676bf-8d9a-d6e9-2d5e-74fd047c3944 |
06/08/2017 |
medium |
Inserts a new task of the default mode above the selected task row or cell in a Gantt chart.
expression. InsertTask
expression An expression that returns an Application object.
Boolean
The InsertTask method corresponds to the Insert Task command on the right-click option menu in a list of tasks. The new task is the default mode (manually or automatically scheduled), contains a task ID number, and the Task Name cell is selected with **<Type Task Name Here>**. Each task ID below the new row increases by one.
By comparison, the InsertBlankRow method creates a blank row, where additional task information can be added programmatically. To create a manually scheduled task where the default mode is automatic, use the InsertManualTask method. To create an automatically scheduled task where the default mode is manual, use the InsertScheduledTask method.
[!includeSupport and feedback]