PayRate オブジェクト (Project)

Represents a line of rates from the cost rate table of a resource. The PayRate object is a member of the PayRates collection.

PayRate オブジェクトの使い方

PayRates (Index) を使用します。ここで、Index は有効なレートを返す給料率インデックス番号または日付で、単一の PayRate オブジェクトを返します。 次の例は、コスト単価のレートの Tamara の最初の行の標準支払い単価を返します

ActiveProject.Resources("Tamara").CostRateTables("C").PayRates(1).StandardRate

PayRates コレクションの使い方

Use the PayRates property to return a PayRates collection. The following example lists the standard pay rates for all the cost rate tables of the resource in the active cell.

Dim CRT As CostRateTable
DIM PR As PayRate
Dim Rates As String

For Each CRT In ActiveCell.Resource.CostRateTables
    For Each PR In CRT.PayRates
        Rates = Rates & "CostRateTable " & CRT.Name & ": " & PR.StandardRate & vbCrLf
    Next PR
Next CRT
    
MsgBox Rates

Add メソッドを使用して、PayRate コレクションに PayRate オブジェクトを追加します。 次の例では、Tamara のコスト単価表「C」に、発効日が 2012 年 9 月 1 日、標準単価が 1 時間あたり 40.00 ドル、超過勤務料金が 1 時間あたり 60.00 ドル、使用あたりのコストが 0 ドルの行を追加します。

ActiveProject.Resources("Tamara").CostRateTables("C").PayRates.Add "9/1/2012", "$40/h", "$60/h", "$0"

メソッド

名前
Delete

プロパティ

名前
Application
CostPerUse
EffectiveDate
インデックス
OvertimeRate
Parent
StandardRate

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

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