Selecting a task with other tasks rolled up

S

SigCool

I want to select a task and I know its ID. But the task ID does not match
the row number if using the SelectTaskField method and if there are previous
tasks that are rolled up.

For example, task_id is 50, and I have rows 10-40 rolled up. But the
statement SelectTaskField row:=task_id, Column:="Name", rowrelative:=False
will select row ID 80.

How can I select the task I really want?
 
J

Jan De Messemaeker

Hi,

1. By using OutlineShowAllTasks and Filterapply "All Tasks" before selecting
- In which case ID=position
2. By
Select all
for each anytask in activeselection.tasks
.... compare the selected task to the one you need counting the lines
HTH
 

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