Drag and Drop a task in VBA (Project 2000)

P

pleb

Hi,

I want to know if it is possible to drag and drop a task between two others
task in VBA and if it is, which command I have to use.

I don't want to do a cut/paste because my moved task losted its
dependencies.

thank's for your help.
Pierre L.
 
P

pleb

The answer is to use :
mspProjet.AutoLinkTasks = False
to disable the automatic links with the task just before when you cut and
paste
after use
mspProjet.Application.SelectRow Row:=theTaskToCut,
rowrelative:=False
mspProjet.Application.EditCut
to cut
and

mspProjet.Application.SelectRow Row:=thsTaskToPasteBefore,
rowrelative:=False
mspProjet.Application.EditPaste

thank's to PLEB ;-)
 

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