title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Task.RemainingOvertimeCost property (Project) |
project-server |
|
6e8d72fd-efac-ed22-9549-950bba1cfc84 |
06/08/2017 |
medium |
Gets the remaining overtime cost for the task. Read-only Variant.
expression. RemainingOvertimeCost
expression A variable that represents a Task object.
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
[!includeSupport and feedback]