PRJ: LinkPredecessors/LinkSuccessors Method May Crash |
Q115244
In Microsoft Project, when you use either the LinkPredecessors or LinkSuccessors method in a Visual Basic, Applications Edition, module, you may receive a general protection (GP) fault.
This problem occurs when you use the Tasks collection as the Tasks argument
without indicating a particular task (that is, the index number is not
provided).
The "Tasks" parameter requires an indexed object.
Microsoft has confirmed this to be a problem in the Microsoft products that are listed at the beginning of this article.
Sub Test()
Set T = ActiveProject.Tasks
For i = 1 to (T - 1)
ActiveProject.Tasks(4).LinkPredecessors Tasks:=T
Next i
End Sub To use the LinkPredecessors or LinkSuccessors methods correctly, make the following change to your code:An error has occurred in your application....
ActiveProject.Tasks(4).LinkPredecessors Tasks:=T(i)
Additional query words: hang lock up freeze gpf
Keywords : kbcode kbmacro
Issue type : kbbug
Technology : kbProjectSearch kbProject400
|
Last Reviewed: November 5, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |