ResourceGroups オブジェクト (Project)

Represents all of the resource-based group definitions. ResourceGroups is a collection of Group objects.

ResourceGroups コレクションの使い方

ResourceGroups プロパティを使用して、ResourceGroups コレクションを返します。 The following example lists the names of all the resource groups in the active project.

Dim rg As Group 
Dim rGroups As String 
 
For Each rg in ActiveProject.ResourceGroups 
 rGroups = rGroups & rg.Name & vbCrLf 
Next rg 
 
MsgBox rGroups

Add メソッドを使用して、ResourceGroups コレクションにグループ オブジェクトを追加します。 次の使用例は、標準単価を基準にしてリソースを降順に並べ替える新しいグループを作成します。

ActiveProject.ResourceGroups.Add "Resources by Rate", "Standard Rate" 
ActiveProject.ResourceGroups("Resources by Rate").GroupCriteria(1).Ascending = False

注釈

グループ階層を維持し、セルの色を 16 進値で指定するリソース グループの場合は、 ResourceGroups2 コレクション オブジェクトを使用します。

メソッド

名前
Add
Copy

プロパティ

名前
アプリケーション
Count
アイテム
Parent

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。