propiedad Task.Name (Project)
Obtiene o establece el nombre de un objeto Task. String de lectura y escritura.
Sintaxis
expresión. Nombre
Expresión Variable que representa un objeto Task .
Ejemplo:
En el siguiente ejemplo, se muestran los nombres de las tareas que contienen el texto especificado.
Sub NameExample()
Dim t As Task
Dim x As String
Dim y As String
x = InputBox$("Search for tasks that include the following text in their names:")
If Not x = "" Then
For Each t In ActiveProject.Tasks
If InStr(1, t.Name, x, 1) Then
y = y & vbCrLf & t.ID & ": " & t.Name
End If
Next t
If Len(y) = 0 Then
MsgBox "No tasks with the text " & x & " found in the project", vbExclamation
Else
MsgBox y
End If
End If
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.