T
TooN
Hi..
Ive got a small lillte macro that traces predecessors and successors. I want
a message box when there are no predecessors or successors available. Here is
the macro:
Sub TRACE_Successors()
Dim Job As Task
Dim Base As Task
For Each Job In ActiveProject.Tasks
If Not Job Is Nothing Then
Job.Flag7 = False
End If
Next Job
Set Base = ActiveSelection.Tasks(1)
Base.Flag7 = True
For Each Job In Base.SuccessorTasks
Job.Flag7 = True
FilterApply Name:="Trace", Highlight:=False
Next Job
End Sub
Can anybody help me that if there are no pre of successors a message box
will show up!!
Thanks
Ive got a small lillte macro that traces predecessors and successors. I want
a message box when there are no predecessors or successors available. Here is
the macro:
Sub TRACE_Successors()
Dim Job As Task
Dim Base As Task
For Each Job In ActiveProject.Tasks
If Not Job Is Nothing Then
Job.Flag7 = False
End If
Next Job
Set Base = ActiveSelection.Tasks(1)
Base.Flag7 = True
For Each Job In Base.SuccessorTasks
Job.Flag7 = True
FilterApply Name:="Trace", Highlight:=False
Next Job
End Sub
Can anybody help me that if there are no pre of successors a message box
will show up!!
Thanks