I
Inge M
I am trying to update the work proerty on a task in project using VBA and
this Code
Private Sub App_ProjectBeforeTaskChange(ByVal t As Task, _
ByVal Field As PjField, _
ByVal NewVal As Variant, _
Cancel As Boolean)
Dim i As Variant
i = "100"
t.Work = i
End Sub
But i am getting a runtime error when the code is executing.
The real purpose of what want to achive is to calculate the work using two
custom fields.
t.work = number1*number2
Hope someone can help me figure out why my simple test code is not running.
this Code
Private Sub App_ProjectBeforeTaskChange(ByVal t As Task, _
ByVal Field As PjField, _
ByVal NewVal As Variant, _
Cancel As Boolean)
Dim i As Variant
i = "100"
t.Work = i
End Sub
But i am getting a runtime error when the code is executing.
The real purpose of what want to achive is to calculate the work using two
custom fields.
t.work = number1*number2
Hope someone can help me figure out why my simple test code is not running.