D
Dave Hollas
Hi All,
Really need some help here. I'm attempting to count the alike task name in
the subproject of a consolidated project file. I think I need to set the
tasks and tasks to something. But I don't know what. Any help would be
appreciated.
Dave
Sub TheThingCount()
Dim oT As Task
Dim oTs As Tasks
Dim iCount As Integer
Dim SubProj as Subproject
For Each SubProj In ActiveProject.Subprojects
For Each oT In oTs
If Not oT Is Nothing Then
If oT.Summary = False Then ' I wanted to optimize the process
by filtering out summary task type
If oT.Name = "The Thing Name" Then
iCount = iCount + 1
End If
End If
End If
Next oT
Next Subproject
End Sub
Really need some help here. I'm attempting to count the alike task name in
the subproject of a consolidated project file. I think I need to set the
tasks and tasks to something. But I don't know what. Any help would be
appreciated.
Dave
Sub TheThingCount()
Dim oT As Task
Dim oTs As Tasks
Dim iCount As Integer
Dim SubProj as Subproject
For Each SubProj In ActiveProject.Subprojects
For Each oT In oTs
If Not oT Is Nothing Then
If oT.Summary = False Then ' I wanted to optimize the process
by filtering out summary task type
If oT.Name = "The Thing Name" Then
iCount = iCount + 1
End If
End If
End If
Next oT
Next Subproject
End Sub