Determine if sub task is visible

A

AJJA

Is there a way to determine if a sub task is currently visible on the
screen? Or, in other words... Is there a way to determine if a sub task is
currently rolled up into its summary task?

Thanks!
 
J

JackD

Sorry, I don't think this is possible.
You can set the outline level to display, but I think that the display
property is write only.
Maybe I'm wrong about this.

-Jack Dahlgren
 
A

AJJA

Thanks for the reply! I suspected this was the case, but I just wanted to be
sure.
 
J

John

JackD said:
Sorry, I don't think this is possible.
You can set the outline level to display, but I think that the display
property is write only.
Maybe I'm wrong about this.

-Jack Dahlgren

Jack,
How about doing a SelectAll and then looping through the selected set
and looking for discontinuities in the ID or do a little algorithm with
the OutlineChildren.Count property? That should work.

With regard to whether a task is rolled up to its summary, I assume the
poster is referring to a Gantt Bar rollup since data fields
automatically roll up where appropriate. For the Gantt bar rollup, just
look at the Rollup field.

John
Project MVP
 
A

AJJA

Thanks John!!!

I just tried this out... I do a selectall and loop thru the
ActiveSelection.Tasks then compare with the ActiveProject.Tasks

This will do the trick, thanks!
 
J

John

AJJA said:
Thanks John!!!

I just tried this out... I do a selectall and loop thru the
ActiveSelection.Tasks then compare with the ActiveProject.Tasks

This will do the trick, thanks!

AJJA,
You're welcome. If all you want to do is find out if some part of the
plan is collapsed then your approach will work but it could be
simplified. All you really need to do is to compare the Count property
between ActiveSelection.Tasks and ActiveProject.Tasks - no looping
required. I kind of assumed you wanted to know which summaries were
collapsed. But, you got what you need and that's great.

John
Project MVP
 

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