會在資源檢視中插入新資源。
語法
expression。
InsertResource( _Type_ )
詞 一個回傳 應用程式 物件的表達式。
參數
| 名稱 | 必要/選用 | 資料類型 | 描述 |
|---|---|---|---|
| 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 支援與意見反應。