D
djlewis2
I record a macro (with "Absolute (ID)" row references and select the
name field of task with ID=45, and get this recorder.
Sub Macro5()
SelectTaskField Row:=45, Column:="Name", RowRelative:=False
End Sub
OK, seems good. But now I run that sub and look at the project gantt
chart, and I see that the task with ID 101 is selected. That's the
45th task counting only visible tasks from the top, not counting tasks
hidden by closed outline nodes.
What is going on? Apart from the macro recorder appearing to lie, how
the heck -- in VBA -- do I go to a task with a specific ID (or UniqueID
for that matter).
BTW, with Relative Row Reference, it seems to work properly. The
offset recorded is the number of rows actually showing in the outline,
and replaying the generated macro does the same thing.
Thanks. --David.
name field of task with ID=45, and get this recorder.
Sub Macro5()
SelectTaskField Row:=45, Column:="Name", RowRelative:=False
End Sub
OK, seems good. But now I run that sub and look at the project gantt
chart, and I see that the task with ID 101 is selected. That's the
45th task counting only visible tasks from the top, not counting tasks
hidden by closed outline nodes.
What is going on? Apart from the macro recorder appearing to lie, how
the heck -- in VBA -- do I go to a task with a specific ID (or UniqueID
for that matter).
BTW, with Relative Row Reference, it seems to work properly. The
offset recorded is the number of rows actually showing in the outline,
and replaying the generated macro does the same thing.
Thanks. --David.