Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Trouble getting correct data in Project 2010 using Taskdependency

$
0
0

Hey I'm having some issues with the following code.  The code below seems to work just fine in Project 2007 and Project 2010 as lon

Hello all, first Happy Holidays to whoever might be on.  I have a question regarding the code below.

Dim TaskDep As TaskDependency
    For Each TaskDep In ActiveSelection.Tasks(1).TaskDependencies
        Tname = TaskDep.From.Name
        TUID = TaskDep.From.UniqueID
        MsgBox "Name: " & Tname & " UID: " & TUID
    Next
I am trying to find the characteristics of the predecessors of a selected task (in this instance, "Name" and "Unique ID").  Seems to work just fine if the taskdependency is in a single project file in Project 2010.  However it seems to produce errant results if the taskdependency comes from a subproject.  Is there a line of code of missing that will make this work across subprojects?  Can anyone reproduce this error?


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>