R
RixMcx
Sub GetPhaseDuration()
Dim start As Date
Dim Finish As Date
Dim Duration As Integer
Dim PhaseDuration As Integer
For Each Task In active.Project.Tasks
If Task.Summary Then
PhaseDuration = Task.Summary.Duration
End If
If Not Task.Summary Then
task.outlineparent.Duration
End If
End Sub
I am trying to create a field that displays Phase duration or PhaseStart and
PhaseFinish to use in a formula. I have read similar posts but I am a little
rusty at VBA. I have used VBA in Word, Access and Outlook so hopefully with
a little direction I can do this.
Thanks
Dim start As Date
Dim Finish As Date
Dim Duration As Integer
Dim PhaseDuration As Integer
For Each Task In active.Project.Tasks
If Task.Summary Then
PhaseDuration = Task.Summary.Duration
End If
If Not Task.Summary Then
task.outlineparent.Duration
End If
End Sub
I am trying to create a field that displays Phase duration or PhaseStart and
PhaseFinish to use in a formula. I have read similar posts but I am a little
rusty at VBA. I have used VBA in Word, Access and Outlook so hopefully with
a little direction I can do this.
Thanks