PRJ98: Method Does Not Create Cross-Project Links (192025)
The information in this article applies to:
- Microsoft Project 98 for Windows
This article was previously published under Q192025 SYMPTOMS
In Microsoft Project 98, when you run a Microsoft Visual Basic for
Applications Sub procedure (or macro) to create cross-project links using
either the LinkPredecessors method or the LinkSuccessors method, the method
does not create cross-project links. Instead, it creates links within the
source project.
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
To work around this behavior, use the Predecessors or Successors property.
For example, to create a cross-project link between the first task of the
active project and the first task of a project named Project2, use the
following line of code:
ActiveProject.Tasks(1).Predecessors = "Project2\1"
-or-
If a predecessor/successor relationship already exists for a task and you
need to create an additional link, use the following line of code:
ActiveProject.Tasks(1).Predecessors = ActiveProject.Tasks(1).Predecessors &
"," & "Project2\1" STATUS
Microsoft has confirmed this to be a problem in the versions of Microsoft
Project listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbbug kbdtacode kbpending KB192025 |
---|
|