How to copy task from one project to an other

E

ERIC

I want to copy a task from one project to an other one.
I've tried the following:

dim task1 as Task
dim Task2 as Task

set task1= project1.Tasks(1)
set task2=project2.Tasks.Add(task1.Name)
set task2=task1

It creates the task but does not copy the informations of
task1 in task2.

Can anybody help me on this topic

Thanx
Eris
 
R

Rod Gill

Hi,

Try recording a macro of you copying a task and look at the recorded code.

Please note that this group is closing down soon. Please use
public.developer from now on.

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 

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