I am not aware of an event that will trigger only when links are created.
Here is an outline of a subroutine that will fire every time the project
changes.
Private Sub Project_Change(ByVal pj As Project)
If (links have changed) then
If(Business Rules Allow Link) then
Let Link Stand
Else
Erase the link
MsgBox("Business Rules will not allow linking at this time")
End If
End If
End Sub
The challenge -- How will Project know the predecessor or successor changed?
Consider: Write a macro for the user to run. The macro can determine if
links are allowed on certain tasks. If the link violates a business rule,
set a Flag field to "Yes" then filter on the flag.
The user may run the macro at any time, not wait until save.
Hope that helps. If you need additional guidance, try posting to
microsoft.public.project.developer
--
If this post was helpful, please consider rating it.
Jim Aksel, MVP
Check out my blog for more information:
http://www.msprojectblog.com