Event procedures are named as follows.
|
Sub Objectname_Event()
|
I.e.. If a right-click event is to be detected by a sheet then use the following
|
Sub Worksheet_BeforeRightClick()
-
Events can also occur on forms and dialog boxes. Different controls present on the form can trigger different events.
-
Eg. A button control on the form can recognize the Clicked event
-
The naming convention for event procedures is as above.
|