Declare in C# New Task

D

Diego

Can`t do it???????

Microsoft.Office.Interop.MSProject.Task NewTask = new
Microsoft.Office.Interop.MSProject.Task;

Help PLease!!!!!!!!!!!!

Waiting your help.........
 
J

Jack Dahlgren

I'm not a c# guy, but the VBA method for a new task is usually something
like:
activeproject.tasks.add (then parameters here)
Basically you are adding an item to a tasks collection.
Give that angle a shot.

-Jack Dahlgren
 
D

Diego

This it is the code by if to someone serves him:

Task newTask = ProjectAplication.ActiveProject.Tasks.Add("NameTask",
Missing.Value);

Greats,

Diego
 

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