Assigning Unique ID predecessors in MS Project VBA

Was this post useful to you?


I am trying to create a macro for MS Project for assigning relationships to tasks using their unique IDs in Unique ID Predecessor. I need to use unique ids as tasks are deleted or added occasionally in my master schedule (consisting of sub projects)
I use the following syntax to link tasks
SetTaskField Field:="Unique ID Predecessors", Value:="1FS", TaskID:=2
But it is not useful if new tasks are inserted or deleted as task ids change. So i want use unique task ids


akshayk's picture
Tue, 08/12/2014 - 07:34

Post your reply

Filtered HTML

  • Allowed HTML tags: <b> <br> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.