CostRateTable.PayRates Property

Project Developer Reference

Returns a PayRates collection that represents the various pay rates on a resource's cost rate table. Read-only Object.

Syntax

expression.PayRates

expression   A variable that represents a CostRateTable object.

Return Value
PayRates

Remarks

For the Resource object, the PayRates property returns pay rates for cost rate table A, the default table.

Example
The following example lists the standard pay rates for all the cost rate tables of the resource in the active cell.

Visual Basic for Applications
  Sub ListPayRates()
    Dim CRT As CostRateTable, PR As PayRate
    Dim Rates As String
For Each CRT In ActiveCell.Resource.CostRateTables
    For Each PR In CRT.<strong class="bterm">PayRates</strong>
        Rates = Rates &amp; "CostRateTable " &amp; CRT.Name &amp; ": " &amp; _
            PR.StandardRate &amp; " (Effective " &amp; PR.EffectiveDate &amp; _
            ")" &amp; vbCrLf
    Next PR
Next CRT

MsgBox Rates

End Sub

See Also