How to select a task when a filter...

W

Woody

Hi,
How can we select a task (with VBA) the TaskID of which is 10, when a filter
is applied and this task is, may be, the 7th in the list of tasks ?
Thanks for your help!
 
J

John

Woody said:
Hi,
How can we select a task (with VBA) the TaskID of which is 10, when a filter
is applied and this task is, may be, the 7th in the list of tasks ?
Thanks for your help!

Woody,
Simple as this may seem, Project's object library does not have a direct
way of selecting a specific task object in a filtered view. The best I
can come up with is to use the Find Method. The syntax could be:

Find Field:="ID", Test:="equals", Value:="10"

Hope this helps.
John
Project MVP
 
W

Woody

Thanks a lot for the trick, John.

Woody

John said:
Woody,
Simple as this may seem, Project's object library does not have a direct
way of selecting a specific task object in a filtered view. The best I
can come up with is to use the Find Method. The syntax could be:

Find Field:="ID", Test:="equals", Value:="10"

Hope this helps.
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