VB macro- re-assign units to material resources

D

Diek

Hi all,
I´m actually working on a macro that assign a material resource to a
selected task,
with a number of units (TotMaterial)

im using this code line:

ActiveProject.Tasks(IndexTask).Assignments.Add ID_Task,ID_Resource,TotMaterial

The problem is that the resource assigment is correct, but not the unit
assignment,
it is always set up to 1
¿do uknow what is going wrong? ¿can i assign this TotMaterial by any other
way?

Thanks for the answers!!

Diek
 
M

Mike Glen

Hi Diek,

Try posting on the developer newsgroup. Please see FAQ Item: 24. Project
Newsgroups. FAQs, companion products and other useful Project information
can be seen at this web address: http://www.mvps.org/project/.

Mike Glen
Project MVP
 
L

Lars Hammarberg

It's a bug.
Set the assignment unit to 1 in the Add method and then set it to the
correct value directly afterwards.
The Project way of handling material resources is quite a pain sometimes...
 

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