Venkata,
I didn't try this out, but I'm wondering about your suggestion about keeping
"Auto link inserted or moved tasks" on. I think that that would work with
simple Finish to Start relationships, but it does not truly "maintain" the
relationship. Also would it work if the tasks were linked in reverse order
(from higher ID to lower ID)?
I think your idea is good, I just wonder if it will always give the expected
result.
--
Please try to keep replies in this group. I do check e-mail, but only
infrequently.
-Jack Dahlgren, Project MVP
+++++++++++++++++++
Quote:
> Fabian
> In addition to Jack's method can you try one more approach (hopefully it
> should give the results you want). I was thinking that copying your
selected
> tasks, deleting all tasks, then re pasting the copied tasks should work.
> When you copy and paste, the links are maintained and any in between link
> tasks not selected are perfectly dissolved.
> Select your tasks and then run the following macro. Also make sure that
> "Auto link inserted or moved tasks" option is selected in
> Tools|Options|Schedule.
> Sub CopyPaste()
> Application.DisplayAlerts = False
> Application.EditCopy
> Application.SelectAll
> Application.EditDelete
> Application.EditPaste
> End Sub
> Regards
> Venkata Krishna
> The way to hide tasks in Project is to use a filter. Set some property of
> the task (perhaps task.flag1 or ...) which can be used as a filter
criteria
> and then filter the tasks.
> If you are unfamiliar with Project you can get a quick idea of the
objects,
> methods and properties used for this by recording the sequence of steps to
> create and apply a filter.
> --
> Please try to keep replies in this group. I do check e-mail, but only
> infrequently.
> -Jack Dahlgren, Project MVP
> +++++++++++++++++++
> > Hello group!
> > I'm creating a wizard to simplify the creation of new projects. I have a
> > template-project, which has various tasks and links between them.
> > Users can select which of these tasks shall be used in the new project.
> Only
> > these tasks shall be presented to the user.
> > Let's head for my problem: The tasks should not simply be deleted (that
> > would be a lot of work - the links had to be updated to the new
locations
> > with code) - they should be hidden and their lenght should be set to 0.
> > I have not found any property in the task object (and nothing similar in
> the
> > UI) that lets me hide these tasks.
> > I am pretty new to MS Project (but not to VBA) -- propably I'm thinking
in
> a
> > completely wrong direction.
> > Happy about any ideas!
> > Thanks for your time,
> > Fabian