Share via


RemainingOvertimeCost Property

Returns the remaining overtime cost for an assignment, resource, or task. Read-only 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.

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.RemainingOvertimeCost & ListSeparator & " "
    Next T
    
    Results = Left$(Results, Len(Results) - Len(ListSeparator & " "))
            
    MsgBox Results
    
End Sub

Applies to | Assignment Object, Assignments Collection Object | Resource Object, Resources Collection Object | Task Object, Tasks Collection Object

See Also | Costn Property | RemainingCost Property | RemainingOvertimeWork Property