Cancelling the ProjectBeforeResourceChange event fails in MSP 2003

P

PCarsten

Hi,

I'm trying to prevent users of Microsoft Project 2003 to alter resource
data. So I have enabled events and created the following procedure:

'********
Private Sub App_ProjectBeforeResourceChange(ByVal res As Resource, ByVal
Field As PjField, ByVal NewVal As Variant, Cancel As Boolean)

Select Case Field
Case pjResourceText30
MsgBox "Don't do this!"
Cancel = True
End Select
End Sub
'********

The event fires as expected, however the update is not cancelled.

The same kind of code works perfectly with the ProjectBeforeTaskChange event.

All suggestions for a workaround is much appreciated.

Best regards
______________________________
Carsten Petersen
Senior EPM Application Consultant
eS Enterprise Project Mgt.
 
B

Beth Melton

If you don't get the answer you are looking for here then you may want
to try posting this in a Project newsgroup since that's where the
Project gurus tend to hang out. :)

Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top