Using GoTo Task in Master Project

J

Jim Aksel

I am using the code (taken from Rod Gill's new book):

EditGoTo ID:=lngID
WhatsDrivingMyTask <<< Function to determine predecessors, etc.

lngID becomes a TaskID (row number) in a Project file that I want to go to.
This code works fine as long as I am in a stand alone file.

I would like to use this code in a Master Project. So, if I am in
Inserted_Project1 of MasterProject and want to go to line 587 within
Inserted_Project1, how do I adapt this code?

How would I go to Inserted_Project2 line "x" from Inserted_Project1 line "y"
programactically?

TIA

Jim

I have also noted that F5 within the file does not behave the way we would
like it to either.
 
J

John

Jim Aksel said:
I am using the code (taken from Rod Gill's new book):

EditGoTo ID:=lngID
WhatsDrivingMyTask <<< Function to determine predecessors, etc.

lngID becomes a TaskID (row number) in a Project file that I want to go to.
This code works fine as long as I am in a stand alone file.

I would like to use this code in a Master Project. So, if I am in
Inserted_Project1 of MasterProject and want to go to line 587 within
Inserted_Project1, how do I adapt this code?

How would I go to Inserted_Project2 line "x" from Inserted_Project1 line "y"
programactically?

TIA

Jim

I have also noted that F5 within the file does not behave the way we would
like it to either.

Jim,
I tried a few different approaches and as far as I can tell, the
EditGoTo Method is only applicable to the active project. So similar to
formatting in a master file, it only applies to the tasks that are
actually part of the master.

To do what you want I would probably use the SelectRow Method to
activate the appropriate subproject task. Just remember that with this
method, the row number is defined by the visible rows, not the actual ID.

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