Task.RemainingOvertimeCost property (Project)
Gets the remaining overtime cost for the task. Read-only Variant.
Syntax
expression. RemainingOvertimeCost
expression A variable that represents a Task object.
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.