Share via


StartVariance Property

Returns the variance (in minutes) between the baseline start date and the start date of an assignment or task. Read-only Variant.

Example

The following example displays the number of tasks in the active project that have started late.

Sub CountLateTasks()

    Dim T As Task               ' Task object used in For Each loop
    Dim LateTasks As Integer    ' The number of late tasks

    LateTasks = 0

    ' Look for late tasks in the active project.
    For Each T In ActiveProject.Tasks
        If T.BaselineStart < ActiveProject.CurrentDate And T.StartVariance > 0 Then
            LateTasks = LateTasks + 1
        End If
    Next T

    MsgBox "There are " & LateTasks & " late tasks in this project."
    
End Sub

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

See Also | ActualStart Property | BaselinenStart Property | CostVariance Property | DurationVariance Property | FinishVariance Property | Start Property | WorkVariance Property