B
B Fennell
I have a need to be able to copy information from numerous separate project
files into one large comprehensive project file. I wrote a macro to copy
tasks from one project file (proj1) to another (proj2) where the user could
specify where exactly the information was to be copied in proj2. This was
simple until I tried to copy link information. I tried the following:
Projects(proj2)Tasks(i).Predecessors = Projects(proj1).Tasks(j).Predecessors
Projects(proj2)Tasks(i).Successors= Projects(proj1).Tasks(j).Successors
Where i and j are different numbers. The IDs of the tasks being copied
(from proj1) are going to adjust to their new position (once they're in
proj2) but the link information appears to be static
Is there a way (or a pre-existing macro) that I can use to copy link
information from one project to another that will adjust links to their new
position? I need this in order to retain the relationships established in
the source project (proj1) regardless of where it is copied into the target
project (proj2).
files into one large comprehensive project file. I wrote a macro to copy
tasks from one project file (proj1) to another (proj2) where the user could
specify where exactly the information was to be copied in proj2. This was
simple until I tried to copy link information. I tried the following:
Projects(proj2)Tasks(i).Predecessors = Projects(proj1).Tasks(j).Predecessors
Projects(proj2)Tasks(i).Successors= Projects(proj1).Tasks(j).Successors
Where i and j are different numbers. The IDs of the tasks being copied
(from proj1) are going to adjust to their new position (once they're in
proj2) but the link information appears to be static
Is there a way (or a pre-existing macro) that I can use to copy link
information from one project to another that will adjust links to their new
position? I need this in order to retain the relationships established in
the source project (proj1) regardless of where it is copied into the target
project (proj2).