M
Montse
Hello,
I’m working with the event ProjectBeforeResourceChange2 in MS Project
Professional 2002.
The procedure which implements it, has the next parameters:
Private Sub object_ProjectBeforeResourceChange2(ByVal res As
MSProject.Resource, ByVal Field As PjField, ByVal NewVal As Variant, Info As
MSProject.EventInfo)
But I can compile my code only when I write:
Private Sub object_ProjectBeforeResourceChange2(ByVal res As
MSProject.Resource, ByVal Field As PjField, ByVal NewVal As Variant, ByVal
Info As MSProject.EventInfo)
The parameter Info only admits ByVal and not ByRef or nothing. As a
result, the variable's value can't be changed by the procedure to which it is
passed so I can’ stop the event although I assign the value true to
Info.Cancel.
What can I do to avoid that event happens?
Thank you in advance.
I’m working with the event ProjectBeforeResourceChange2 in MS Project
Professional 2002.
The procedure which implements it, has the next parameters:
Private Sub object_ProjectBeforeResourceChange2(ByVal res As
MSProject.Resource, ByVal Field As PjField, ByVal NewVal As Variant, Info As
MSProject.EventInfo)
But I can compile my code only when I write:
Private Sub object_ProjectBeforeResourceChange2(ByVal res As
MSProject.Resource, ByVal Field As PjField, ByVal NewVal As Variant, ByVal
Info As MSProject.EventInfo)
The parameter Info only admits ByVal and not ByRef or nothing. As a
result, the variable's value can't be changed by the procedure to which it is
passed so I can’ stop the event although I assign the value true to
Info.Cancel.
What can I do to avoid that event happens?
Thank you in advance.