Website Upgrade Incoming - we're working on a new look (and speed!) standby while we deliver the project

Tips on using this forum..

(1) Explain your problem, don't simply post "This isn't working". What were you doing when you faced the problem? What have you tried to resolve - did you look for a solution using "Search" ? Has it happened just once or several times?

(2) It's also good to get feedback when a solution is found, return to the original post to explain how it was resolved so that more people can also use the results.

Weightage ..?

1 reply [Last post]
Sivalingam Prabag...
User offline. Last seen 6 years 31 weeks ago. Offline
Joined: 28 Aug 2007
Posts: 7
Groups: GPC Malaysia

hi planners ..

ms project work programme based on duration (num of days)
sometime will never reflect the actual work at site ..

it there any possibility of adding a weightage to
all activities so that the act. will be represented
fairly ..?

thanks in advance ..

PS

Replies

L.E.N. Lewis
User offline. Last seen 2 years 42 weeks ago. Offline
Joined: 2 Aug 2007
Posts: 47
Groups: None
The value for Duration is a derived number (it’s the difference between Start and Finish) so you can’t set up a formula to force it to something else.

As a workaround, you could do this: Let’s assume that the duration is the product of two factors: Coats of paint (1, 2, or 3); and Number of Widgets. And let’s assume that these are *big* widgets and it takes a day to apply a coat of paint (which can dry overnight).

So the duration for 10 widgets would be 10 days (if they get just 1 coat of paint), 20 days (if they get 2 coats) and 30 days (if they get three coats).

Display the task columns Number1 and Number2. In column 1 put the number of coats of paint; in column 2 put the number of widgets.

Display the column Duration1. Give it the formula:
[Number1]*[Number2]*[Minutes Per Day]

You need [Minutes Per Day] because project stores durations in minutes.

Finally, you need to move "Duration1" into "Duration" and for that you’ll need a little VBA:


sub DurationOverride()

dim tsk as Task
for each tsk in activeproject.tasks
If not tsk is nothing then ’ignore blank lines
if not tsk.summary then ’ignore summary tasks
if tsk.duration1 > 0 then ’update tasks that have a calculated value
tsk.duration = tsk.duration1
end if
end if
end if
next

Note that if you have tasks with a FNLT, FNET, MFO Constraint type then the Start Date will move to an earlier date (the Finish date is locked and won’t move).

Note that if you have predecessors/successors on the task where you have calculated the Duration then Project will impose those constraints on the task Start/Finish as well.