Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.46 KB

Project.Application.InsertTask.md

File metadata and controls

38 lines (23 loc) · 1.46 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.InsertTask method (Project)
vbapj.chm2167
vbapj.chm2167
project-server
Project.Application.InsertTask
fe4676bf-8d9a-d6e9-2d5e-74fd047c3944
06/08/2017
medium

Application.InsertTask method (Project)

Inserts a new task of the default mode above the selected task row or cell in a Gantt chart.

Syntax

expression. InsertTask

expression An expression that returns an Application object.

Return value

Boolean

Remarks

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]