How to get if a task has a parent or How to get the outlining even

I

Iglesias

Hello,

Sorry, I'm not a programmer

I want to automatically fulfill some attributes for a new task from the
parent task. So I need first to see if the new task has parent. How can I get
that if the task has a parent? Which is the right vba syntax please?
task.parent = True
or
task.parent
or
task.outlineparent = True
or
task.outlineParent
?

The other question (the other form how to resolve this) is:
Exists an event that react when I put a task like a children of other task?
An event "ProjTaskNew" exists, but when you first create a task and then
indent him behind his parent,

For your help, thank you in advance.
Erik Iglesias Abella.
 
J

Jim Aksel

I think you will need something like this:
(I want to copy the Name of the summary task to the Text1 field of myTask)

dim myTask as Task
If myTask.OutlineLevel > 1 Then
myTask.Text1=myTask.OutlineParent.Name 'generally myTask.OutlineParent.xxx
End if

Where xxx is the information you wish to propogate from the parent such as
finish date, percent complete. Use the intellisense to guide you. This will
take information from the immediate parent. Not so easy to take from
Grandparents. There is a similar property for Children, but Grandchildren
are a problem.


If you found this task helpful, please consider rating it.
 

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