Need Help Adding SubTask

N

NB

This is the scenario:


I have 2 summary Tasks with sub tasks :


EventOne
1.1
1.2
1.3
<I need to insert here 1.4 >


EventTwo
1.5
1.6
1.7
<I need to add here 1.8>


If any one can show me with VBA code how to do this will be very much
appreciated.


Thanks


NB
 
J

Jan De Messemaeker

Hi,

set
NewTask=activeproject.tasks.add(name:="theneameofthenewtask",before:="ThenID
of Event2"

HTH
 
Top