Application.InsertResource method (Project)

Inserts a new resource in a resource view.

Syntax

expression. InsertResource( _Type_ )

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
Type Optional PjResourceTypes Specifies whether the type is a cost, material, or work resource. Can be one of the PjResourceTypes constants. The default is pjResourceTypeWork.

Return value

Boolean

Remarks

The InsertResource method corresponds to the Insert Resource command on the right-click option menu in the Resource Sheet view or Resource Usage view. The Resource Name cell is selected with **<Type Resource Name Here>**. In the Team Planner view, InsertResource creates a row below the last resource, with the name New Resource.

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.