
Executing an Event Procedure
I think Andy ment the variables that is transfered to the event-procedure
like this:
'---------------------------------------------
Private Sub opt1999_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
'the code goes here ....
end sub
'---------------------------------------------
Here is "Cancel" a parameter of type "MSForms.ReturnBoolean", and you can
refer to it in your code within the event-procedure "opt1999_BeforeUpdate".
To call this routine from a sub:
'---------------------------------------------
Private sub Something()
opt1999_BeforeUpdate False
end sub
'---------------------------------------------
Here we passed the value "False" to the variable "Cancel" in the
event-procedure "opt1999_BeforeUpdate".
Hope this helps!
Regards,
Oddbjorn Bersas