H
Hans
Hello
I am working with Project 2000 and I like to export resources working
hours month by month to Excel. I have
Jenny Carpenter
Bill Carpenter
Sean Plumber
Steve Plumber
and I like to have:
Jan Feb Mar April
Jenny 200 120 240 200
Bill 120 80 230 150
Sean and so on
Steve
Will this be possible to do?
I have tried to work with TimeScaleData, like
Dim R as Resource
Dim xlrng as Excel.range
Dim VM as TimeScalevalues
Dim MonthNumber As Integer
....
For each R in ActiveProject.Resources
If not (R is Nothing) then
'(Note: Projectstart is 10. januar 2005 and the project will finish
23. april 2005)
Set VM = R.TimeScaleData(Proj.ProjectStart, _
Proj.ProjectFinish, pjResourceTimescaledWork, _
pjTimescaleMonth, 1)
For MonthNumber = 1 to VM.Count
xlrng.Offset(0, MonthNumber) = VM(MonthNumber).Value
Next
End if
Next
Here is the problem that VM.Count only have the value 2 even the
project goes for 4 month, so it looks like:
Jan Feb Mar April
Jenny 200 660
Bill 120 460
Sean and so on
Steve
Any help?
Thanks
Hans
I am working with Project 2000 and I like to export resources working
hours month by month to Excel. I have
Jenny Carpenter
Bill Carpenter
Sean Plumber
Steve Plumber
and I like to have:
Jan Feb Mar April
Jenny 200 120 240 200
Bill 120 80 230 150
Sean and so on
Steve
Will this be possible to do?
I have tried to work with TimeScaleData, like
Dim R as Resource
Dim xlrng as Excel.range
Dim VM as TimeScalevalues
Dim MonthNumber As Integer
....
For each R in ActiveProject.Resources
If not (R is Nothing) then
'(Note: Projectstart is 10. januar 2005 and the project will finish
23. april 2005)
Set VM = R.TimeScaleData(Proj.ProjectStart, _
Proj.ProjectFinish, pjResourceTimescaledWork, _
pjTimescaleMonth, 1)
For MonthNumber = 1 to VM.Count
xlrng.Offset(0, MonthNumber) = VM(MonthNumber).Value
Next
End if
Next
Here is the problem that VM.Count only have the value 2 even the
project goes for 4 month, so it looks like:
Jan Feb Mar April
Jenny 200 660
Bill 120 460
Sean and so on
Steve
Any help?
Thanks
Hans