Creating a new task in MS Project via the .NET Interop library

J

John Svazic

Hi,

Can anyone assist me with the creation of a new task in a given MS
Project project using the .NET Interop API? Specifically, I have a
given project, and I can edit existing tasks, but I cannot for the life
of me figure out how to create a new Task. Even being able to
duplicate a task and simply edit the duplicate would be fine.

I've found the Tasks.Add(object, object) method, but with a lack of
documentation I do not know how to proceed with it. Can anyone help?
TIA
 
J

John Svazic

Sorry, please ignore my previous post. It seems that if I tried to
pass in null for the second parameter it would fail. However, adding a
valid non-zero integer seems to work just fine. Thanks.
 

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