A
Anne
Sorry, I pressed "Space" and the the posting was sent even
if it was not complete.
I used this code and do not know how to leave it after I
tried to edit a new date, because it is impossible to do
anything, I have to close Project with the task manager!
How can I get out of it after the messagebox appeared? I
tried "exit sub" but it is ignored.
Private Sub appl_ProjectBeforeTaskChange2(ByVal tsk As
Task, ByVal Field As PjField, ByVal NewVal As Variant,
ByVal Info As EventInfo)
If Field = pjTaskDate2 Then
MsgBox "The date may not be changed!",
vbCritical
Info.cancel = True
End If
End Sub
Anne
if it was not complete.
I used this code and do not know how to leave it after I
tried to edit a new date, because it is impossible to do
anything, I have to close Project with the task manager!
How can I get out of it after the messagebox appeared? I
tried "exit sub" but it is ignored.
Private Sub appl_ProjectBeforeTaskChange2(ByVal tsk As
Task, ByVal Field As PjField, ByVal NewVal As Variant,
ByVal Info As EventInfo)
If Field = pjTaskDate2 Then
MsgBox "The date may not be changed!",
vbCritical
Info.cancel = True
End If
End Sub
Anne