H
hperron
Hi,
In a macro, I try to change the bookingtype of a resource, but I always
get the message
"unexpected error with the method" (or something like that, the message
is in french)
Private Sub changeBookingType()
Dim res As Resource
Dim bookingType As PjBookingTypes
If
ActiveProject.ProjectSummaryTask.EnterpriseProjectOutlineCode1 =
"Proposition" Then
bookingType = pjBookingTypeProposed
Else
bookingType = pjBookingTypeCommitted
End If
For Each res In ActiveProject.Resources
res.bookingType = bookingType 'The error happens here
Next res
End Sub
Can someone help me resolve that problem.
Thanks in advance
Hugues
In a macro, I try to change the bookingtype of a resource, but I always
get the message
"unexpected error with the method" (or something like that, the message
is in french)
Private Sub changeBookingType()
Dim res As Resource
Dim bookingType As PjBookingTypes
If
ActiveProject.ProjectSummaryTask.EnterpriseProjectOutlineCode1 =
"Proposition" Then
bookingType = pjBookingTypeProposed
Else
bookingType = pjBookingTypeCommitted
End If
For Each res In ActiveProject.Resources
res.bookingType = bookingType 'The error happens here
Next res
End Sub
Can someone help me resolve that problem.
Thanks in advance
Hugues