how to loop through all tasks of a specific summary task?

B

Bruno

Hi there,

I want to catch all tasks of a specific summary task. Being a novice in
msproject's vba, it would be wonderful to see an example which I could use
as a basic.

I think the OutlineParent" and "OutlineChildren" could be used?

Thanks

Bruno
 
J

John

Bruno said:
Hi there,

I want to catch all tasks of a specific summary task. Being a novice in
msproject's vba, it would be wonderful to see an example which I could use
as a basic.

I think the OutlineParent" and "OutlineChildren" could be used?

Thanks

Bruno

Bruno,
Supposedly this newsgroup is going away. We would prefer any future
questions relating to Project VBA be posted in the
microsoft.public.project.developer newsgroup.

Now to answer you question. This code will do what you want provided the
Summary line of interest has been selected.

Sub Select_Kids()
Set Area = ActiveSelection.Tasks(1).OutlineChildren
For Each t In Area
[your code to do what you need]
Next t
End Sub

Hope this helps.
John
Project MVP
 
Top