Assigning values when creating tasks

S

Stewart

I am using vba to read data from an external datasurce and
create MS Project tasks using the following code (where
objOrders contains a structured list of data) :

For Each ROW in objOrders.Rows

ActiveProject.Tasks.Add ROW("OrderNumber")

Next

This works fine but I would like to add more content to
the task being added and have tried :

For Each ROW in objOrders.Rows

ActiveProject.Tasks.Add ROW("OrderNumber")
ActiveProject.Tasks.Item.Text1 = ROW("OrderType")

Next

I get a syntax error which, although I agree with and
understand, prevents me from accessing the newly created
task. Is it possible to do this, any help and / or links
are greatly appeciated.


Regards
 
Top