here's a macro that I knocked up for you. It works on P98, may have to be
modified for P4.x.
Sub OutOfSequence()
' This macro assumes finish-start relationships with no lag
' although it could possibly be modified to cope with other
' configurations (caveat, caveat).
' Variable declaration
Dim oTask As Object
Dim oPredecessor As Object
' Reset the marked field
For Each oTask In ActiveProject.Tasks
oTask.Marked = False
Next oTask
' Set the marked field for the predecessor and the task
For Each oTask In ActiveProject.Tasks
For Each oPredecessor In oTask.PredecessorTasks
If DateDiff("d", oPredecessor.Finish, oTask.Start) < 0 Then
oPredecessor.Marked = True
oTask.Marked = True
End If
Next oPredecessor
Next oTask
End Sub
Once you've run the macro, apply a filter on the Marked field being true,
and you'll see tasks and their out of sequence predecessors (it works with
Autofilter at least).
Note that you have to find the PredecessorTasks collection for each task
and work through it to find out if the predecessor start date is later than
the task in question's start date.
John Ward
(Lots of MS things)
Caveat : life has not been rigorously tested. Please report any errors to
your nearest life-support line.
EMERALDJIM <emera...@aol.com> wrote in article
<199805060245...@ladder03.news.aol.com>...