Cancel an event

Y

Yoav

How can I cancel an event when certain conditions are not met?
E.g. canceling saving a project using Project_BeforeSave event
 
Y

Yoav

Rod,
See the following events I found in the VB editor, there isn't a Cancel
parameter. How can I access this parameter?
Private Sub Project_BeforePrint(ByVal pj As Project)
Private Sub Project_BeforeSave(ByVal pj As Project)
Private Sub Project_BeforeClose(ByVal pj As Project)
 
Top