Application.InsertResource 方法 (Project)

會在資源檢視中插入新資源。

語法

expressionInsertResource( _Type_ )

運算式 傳回 Application 物件的運算式。

參數

名稱 必要/選用 資料類型 描述
Type 選用 PjResourceTypes 指定類型是成本、 材料、 或工時資源。 可以是下列 PjResourceTypes 常數之一。 預設值為 pjResourceTypeWork

傳回值

布林值

註解

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 支援與意見反應