Compartir por


Propiedad Task.Milestone (Project)

True si la tarea es un hito. Variante de lectura y escritura.

Sintaxis

expresión. Milestone

expresión Variable que representa un objeto Task .

Ejemplo

En el ejemplo siguiente se marca como hito cualquier tarea del proyecto activo cuyo nombre comience por la palabra "Inspection".

Sub MarkInspectionTasks() 
 
 Dim T As Task ' Task object used in For Each loop 
 Dim MilestoneName As String 
 Dim NameLength As Integer 
 
 MilestoneName = "Inspection" 
 NameLength = Len(MilestoneName) 
 
 For Each T In ActiveProject.Tasks 
 ' If the task's name begins with Inspection, it's a milestone. 
 If UCase(Left(T.Name, NameLength)) = UCase(MilestoneName) Then 
 T.Milestone = True 
 End If 
 Next T 
 
End Sub

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.