
Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!

Sub RED_PDM() 'CALCULO: ES, LS, EF, LF, HT Dim Tsk As Task Dim Tsks As Tasks Dim Inicio As Date Dim j As Integer j = 1 Dim HT, ES, LS, LF, EF As Double Set Tsks = ActiveProject.Tasks For Each Tsk In Tsks If Not Tsk Is Nothing Then If Tsk.Summary Then If j = 1 Then Inicio = Tsk.Start j = j + 1 End If Else ES = Round(DateValue(Tsk.EarlyStart) - DateValue(Inicio), 2) Tsk.Text30 = ES LS = Round(DateValue(Tsk.LateStart) - DateValue(Inicio), 2) Tsk.Text29 = LS HT = Round(Abs(DateValue(Tsk.LateFinish) - DateValue(Tsk.EarlyFinish)), 2) Tsk.Text28 = HT EF = Round(Tsk.Text30 + Val(Tsk.Duration) / 480, 2) Tsk.Text27 = EF LF = Round(Tsk.Text29 + Val(Tsk.Duration) / 480, 2) Tsk.Text26 = LF End If End If Next End sub