code to Link to External Task

S

SpaceCamel

I am trying to automatically link a milestone to an external milestone in code.

newTask.LinkPredecessors Tasks:=t
where t is a valid task object

But I get the error "Problem with Predecessor".

Is there a way to create the link from text ; <path>\<ID> ? Like in the
Predecessor entry field.
 
R

Rod Gill

Hi,

Try recording a macro of you creating the link you want manually then
editing the recorded code.

--
For VBA posts, please use the public.project.developer group.
For any version of Project use public.project
For any version of Project Server use public. project.server

Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.project-systems.co.nz/
Email rodg AT project-systems DOT co DOT nz
 
Top