Helge Svee said:
Thank you for your answer.
I have two follow up questions for you.
Can you describe what you mean with: "prone to corruption...." It this
method unstable or is it other problem you have experienced.
And the next question: The solution using VBA code. Is it difficult to make?
I have done some VBA-coded macros in Excel before where I teached myself
using record functions and learned the code from these automatic functions.
Can you give me some advice or list some functions I will need. Eg. how to
get access to alter Projects basic fields..... and how to automaticly run
macros when changing values in certain fields.
Helge,
I wouldn't say paste links are unstable. They do work but they require a
lot of discipline to set up and maintain. It is very easy to corrupt a
paste link especially when breaking them. Most people don't realize that
the link has two parts because there is no indication in the source file
(i.e. Edit/Links) that a link exists. If not broken properly, a link
fragment can remain. Over time these fragments will corrupt the file.
This is one problem. I already mentioned the issue of moving the linked
files to different folders (or copying them). There are other issues
with updating paste links especially if there is a large number. The
bottom line - avoid them - there are better methods.
Depending on your level of VBA experience, the code to automate
re-linking can be easy or difficult. I have done it a couple of times
(the code is available but it is not freeware).
Learning VBA by recording macros is a great way to start however
recorded macros are not the most efficient and can't utilize the full
realm of Project objects. Recorded macros (it doesn't matter which
application), run with foreground processing. That is, it selects
objects in the current view and operates on them. VBA code that runs
with background processing is much more efficient and flexible. It
operates directly on Project's objects and is independent of the active
view. If you are interested in learning more about Project VBA there is
an excellent tutorial on our MVP website at:
http://www.mvps.org/project/links.htm
Go to the bottom of the page and look for the link to, "Project 98
Visual Basic Environment Training Materials". Even though it says it is
for Project 98, it is equally applicable to all current versions of
Project. The only real difference is that later versions of Project add
to the Project object library, allowing for greater flexibility.
Another good resource for users new to VBA is fellow MVP, Jack
Dahlgren's website at:
http://masamiki.com/project/macros.htm
Jack has many Project VBA examples and some words of wisdom that should
help you get started.
John
Project MVP