Cancelling the ProjectBeforeResourceChange event fails in MSP 2003

C

Carsten Petersen

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
 

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