The main problem with any of the foreground processing commands, (e.g.
displayed. As you found out, the "row" argument for the SelectTaskField
Method is the display row, not necessarily the task ID. As long as the
project is not filtered, sorted or collapsed, then the row will be the
task ID, but this may not always be the case when a user is working on a
Attempting to "scroll" the display so the desired ID is at the top is
neither easy nor apparently reliable, according to Jack. However, if all
you really want to do is to jump to the desired task, you might find the
following code useful:
On Error Resume Next
EditGoTo ID:=[the desired task ID]
If Err > 0 Then
MsgBox "this task is not available in the current view structure"
On Error GoTo 0
If the project is filtered or collapsed the user will be told with
something other than an evil runtime error message.