Problem with Project using vb.net

J

Johnathan

hi, I have few questions regarding MS Project using vb.net:
1. May I know how to get the resource units allocated to a task in vb.net?
2. If I change the Hours-per-day of a project in vb.net, although it
successfully change the hours per day but there is a need to adjust other
parameter in the project file right? What I get when i change the hours per
day is each taks duration was reduce but that doesn't looks like what it
gonna be in reality. Please advise me.
 
J

Jan De Messemaeker

Hi Johnathan,

First question: I answered that lst Wednesday, 20/02/08
Second: Read FAQ 5 in
http://www.mvps.org/project/faqs.htm

It will explain you what happens when you change hours per day.
Namely duration is not rediuced but its value in days is.
To really change working time you have to do it in Tools, Change Working
time and that is very difficult through VB.
Hope this helps,

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
 
J

Johnathan

The 2nd question I got it thanks.
The 1st question, what you've answered me was assigning a resource to a task
but what if I want to get the unit allocated from a task which already
assinged with a resource?
example:
task 1 is assigned with resource A which has Max Unit 100%, so I want to get
the resource unit for task 1 programmatically. Some task does not used up all
100% unit.
 
J

Jan De Messemaeker

Hi,

I suppose you mean you want to set the units, not get?
By all means, the assignment object has a read/Write property Units:

Mytask.assignments(1).units=0.6
or U=mytask.assignments(3).units

Hope this helps,

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
 

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