Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
other
informationbridge
office.intranets
office.misc
office.setup
office.xml
officeupdate
onenote
photodraw.discussion
powerpoint
producer
proj.standard&server
project
project.developer
project.pro_and_serve
project.server
project.vba
project2000
publisher
publisher.prepress
publisher.programming
publisher.webdesign
visio
visio.createshapes
visio.database.modeling
visio.dev.diagrams
visio.dev.shapesheet
visio.dev.vba
visio.dev.vc
visio.developer
visio.general
visio.installation
visio.printing
visio.software.modeling
visio.troubleshoot
  
 
date: Thu, 26 Jan 2006 13:33:45 +0100,    group: microsoft.public.project.vba        back       


Cancelling the ProjectBeforeResourceChange event fails in MSP 2003   
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
date: Thu, 26 Jan 2006 13:33:45 +0100   author:   Carsten Petersen

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us