A family of Microsoft relational database management systems designed for ease of use.
ProjectUser,
Good alternative. So much for my brash statement about not being able to read the value directly. The only thing I would add is:
For Each T In ActiveProject.Tasks
If Not T is Nothing Then
[your code]
End if
Next T
This handles blank task lines if they are present.
Or, to eliminate the need to check the "add space before label" option, the following code should work
Sub CheckElapsed()
Dim T As Task
Dim DurationString As String
For Each T In ActiveProject.Tasks
If Not T Is Nothing Then
DurationString = T.GetField(pjTaskDuration)
If InStr(1, DurationString, "es") > 0 Or InStr(1, DurationString, "ee") > 0 Then
T.Text1 = "Not Elapsed"
ElseIf InStr(1, DurationString, "e") > 0 Then
T.Text1 = "Elapsed"
Else
T.Text1 = "Not Elapsed"
End If
End If
Next T
End Sub
John