C
Chris Molland
Hello,
Following some great advise from John I can now programatically insert a MS
Project file successfully. However I can't seem to control where it is placed.
My users are able to freely use project 2007 to adjust values, print reports
etc. To insert a Project they click on my Visual Basic application which
guides them through a selection process and eventually inserts the
pre-defined MS Project file.
Of course they may have been at any View, have any cell selected or
collapse/expand any previous sub-projects.
I simply want to insert the new MS Project file at the next available row
and then adjust some of its values. However when I run my code the inserted
sub-project is positioned on any row which happens to be selected and any
previous rows seem to be assigned ID values, like ghost Tasks.
I can see how to switch to Gantt view but not how to insert in the next row.
Once inserted, how can I change the Start date/time for the first Task in
the sub-project. John helpfully suggested I create a UniqueID in one of the
Custom Fields to reference which would work fine except the same MS Project
file may be inserted several times and of course they would have the same
value. Would I have to loop through all of the sub-projects looking for the
highest UniqueID value?
Thank you.
Following some great advise from John I can now programatically insert a MS
Project file successfully. However I can't seem to control where it is placed.
My users are able to freely use project 2007 to adjust values, print reports
etc. To insert a Project they click on my Visual Basic application which
guides them through a selection process and eventually inserts the
pre-defined MS Project file.
Of course they may have been at any View, have any cell selected or
collapse/expand any previous sub-projects.
I simply want to insert the new MS Project file at the next available row
and then adjust some of its values. However when I run my code the inserted
sub-project is positioned on any row which happens to be selected and any
previous rows seem to be assigned ID values, like ghost Tasks.
I can see how to switch to Gantt view but not how to insert in the next row.
Once inserted, how can I change the Start date/time for the first Task in
the sub-project. John helpfully suggested I create a UniqueID in one of the
Custom Fields to reference which would work fine except the same MS Project
file may be inserted several times and of course they would have the same
value. Would I have to loop through all of the sub-projects looking for the
highest UniqueID value?
Thank you.