How to get a Predecessors UID from vb.net or vba?

Y

Yavuz Bogazci

Hi,

i am reading all tasks from my project file. From each task i get the
predecessors like "11AA;4;6". But these are not the UID's. Is it possible to
get the UID's of the predecessors. I saw in an exported XML File thats there
are UID's stored internally. Is it possible to get them with the
Project.Application Object?
 
J

JackD

Here is a brief functional example of how to get UniqueID's for the
predecessors of a selected task:

Sub predUniqueIDs()
Dim t, p As Task
Dim pts As Tasks
Set t = ActiveSelection.Tasks(1)
Set pts = t.PredecessorTasks
For Each p In pts
MsgBox (p.UniqueID)
Next p
End Sub
 

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