H
Hilary
I am having a problem writing values into Actual Cost and Actual Work. I am
trying to write data from another application into these values and spread it
across a number of weeks, but once it gets past 9 weeks (item 10 and beyond
in timescaledata) the values are not written into timescaledata, instead when
I debug it, it says "An unexpected error occurred with the method" . I have
tried various methods of writing to the timescaledata but I get the same
thing. The basic code is below (I've taken out bits that aren't important)
Dim TSVs As TimeScaleValues
Dim TSV As TimeScaleValue
Set TSVs = ActiveProject.Tasks(ID).Assignments(AssID).TimeScaleData _
(taskstart, StatusDate, pjAssignmentTimescaledActualCost,
pjTimescaleWeeks)
For Each TSV In TSVs
TSV = CStr(Format(.Fields("Costs To Date") / Weeks,
"0.000"))
Next
Can anyone help me?
trying to write data from another application into these values and spread it
across a number of weeks, but once it gets past 9 weeks (item 10 and beyond
in timescaledata) the values are not written into timescaledata, instead when
I debug it, it says "An unexpected error occurred with the method" . I have
tried various methods of writing to the timescaledata but I get the same
thing. The basic code is below (I've taken out bits that aren't important)
Dim TSVs As TimeScaleValues
Dim TSV As TimeScaleValue
Set TSVs = ActiveProject.Tasks(ID).Assignments(AssID).TimeScaleData _
(taskstart, StatusDate, pjAssignmentTimescaledActualCost,
pjTimescaleWeeks)
For Each TSV In TSVs
TSV = CStr(Format(.Fields("Costs To Date") / Weeks,
"0.000"))
Next
Can anyone help me?