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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top