Table of contents
Collapse the table of content
Expand the table of content

Task.RemainingOvertimeCost Property (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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
© 2018 Microsoft