Resource.RemainingOvertimeCost Property

Project Developer Reference

Returns the remaining overtime cost for a Resource. Read-only Variant.

Syntax

expression.RemainingOvertimeCost

expression   A variable that represents a Resource object.

Return Value
Variant

Remarks

The RemainingOvertimeCost property does not return any meaningful information for material resources.

Example
The following example returns the remaining overtime cost of each task in the active project.

Visual Basic for Applications
  Sub ReturnOvertimeCost()
    Dim T As Task           ' Task object used in For Each loop
    Dim Results As String
For Each T In ActiveProject.Tasks
    Results = Results & T.Name & ": " & ActiveProject.CurrencySymbol & _
        T.<strong class="bterm">RemainingOvertimeCost</strong> &amp; ListSeparator &amp; " "
Next T

Results = Left$(Results, Len(Results) - Len(ListSeparator &amp; " "))
        
MsgBox Results

End Sub

See Also