Application.InsertResource 方法 (Project)

在资源视图中插入一个新资源。

语法

expressionInsertResource( _Type_ )

表达 返回 Application 对象的表达式。

参数

名称 必需/可选 数据类型 说明
Type 可选 PjResourceTypes 指定的类型是否是成本、 材料、 或工作的资源。 可以是 PjResourceTypes 常量之一。 默认值为 pjResourceTypeWork

返回值

Boolean

说明

The InsertResource method corresponds to the Insert Resource command on the right-click option menu in the Resource Sheet view or Resource Usage view. 选择 “资源名称” 单元格时,<“在此处>键入资源名称”。 In the Team Planner view, InsertResource creates a row below the last resource, with the name New Resource.

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。