Select all decendents of summary

S

SpaceCamel

I need to programaticly select all the decendents of a summary task; children
, grandchildren, etc...

"outlineChildren" will give just the first level children. Is there a
simple way to do this or will I have to use recursion to go down all the
levels?

If someone has already done this help would be appreciated...
 
J

JackD

Recursion will do the trick. I'd consider recursion to be simple so why not
try it?
You can find an example of exactly what you are asking here:
http://zo-d.com/blog/archives/programming.html
Scroll down to the article on "Recursion in Project VBA".

I do have a question though, why do you need to select the tasks?
I almost never select tasks in VBA.
 
S

SpaceCamel

Thanks Jack,

I ended up using the OutlineNumber property to determine all the decendents.
 

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