N
nattyboy
Hi, I'm new to this, but back in 2005 a question was posed about "How can I
have the resource names column show hours per task not percentage?", and I've
needed exactly the same thing.
It was answered by Jan De Messemaeker with code as follows:
Dim Job as task
Dim Whodunit as assignment
for each Job in activeproject.tasks
If not Job is nothing then
Job.text7=""
for each whodunit in job.assignments
job.text7=job.text7 & whodunit.resourcename & "(" _
& cstr(whodunit.work/60) & ");"
next whodunit
if len(job.text7)>0 then
job.text7=left(job.text7,(len(job.text7)-1))
end if
end if
next job
end sub
My Problem: I'm utilizing the code for BaselineWork, so have changed the
"whodunit.work" to "whodunit.BaselineWork". BUT I also have Materials in my
schedule and the "/60" part of the code divides my Materials by 60.
I'm brand new to coding, so can anyone tell me - is there a way to utilize,
or alter, this code so it will work for both hours and materials (money)?
The version of Project I use is - Project Standard 2003 (SP1).
Thank you all.
have the resource names column show hours per task not percentage?", and I've
needed exactly the same thing.
It was answered by Jan De Messemaeker with code as follows:
Dim Job as task
Dim Whodunit as assignment
for each Job in activeproject.tasks
If not Job is nothing then
Job.text7=""
for each whodunit in job.assignments
job.text7=job.text7 & whodunit.resourcename & "(" _
& cstr(whodunit.work/60) & ");"
next whodunit
if len(job.text7)>0 then
job.text7=left(job.text7,(len(job.text7)-1))
end if
end if
next job
end sub
My Problem: I'm utilizing the code for BaselineWork, so have changed the
"whodunit.work" to "whodunit.BaselineWork". BUT I also have Materials in my
schedule and the "/60" part of the code divides my Materials by 60.
I'm brand new to coding, so can anyone tell me - is there a way to utilize,
or alter, this code so it will work for both hours and materials (money)?
The version of Project I use is - Project Standard 2003 (SP1).
Thank you all.